Both cameras use the same engine (processor), so you can expect equal performance from both.

The ZS5 has more optical zoom and is slightly larger and heavier.

If you want more control of your camera, the ZS5 has the important manual controls.
Aperture Priority
Shutter Priority

The ZR3 is strictly point & Shoot, with mode selection.