With flash in that same low-lit settingThe GS4's shot has a bit sharper detail and slightly deeper colors.
Verdict:
The Galaxy S4 has an edge, but not too much. Snapping an image in best of the conditions gives higher quality images on S4. The GS4's camera also holds up well under moderate lighting. The iPhone is better under terrible lighting.
(images courtesy: gizmag.com)