3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("Jonathan", "Sampson"); foreach($array as $value) { $query = $value."\n"; echo $query } ?>
Output for 5.3.0 - 5.3.23, 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/T53hk on line 8
Process exited with code 255.

preferences:
175.98 ms | 1399 KiB | 45 Q