3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row=array('test1'=>'test1'); foreach ($row as $rows){ echo $row['test1']; ?>
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file in /in/5bm9j on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/5bm9j on line 6
Process exited with code 255.

preferences:
181.09 ms | 1394 KiB | 63 Q