3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array(3,4,5); for($list as x){echo x;} ?>
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'as' (T_AS), expecting ';' in 22Z2N on line 3
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_AS, expecting ';' in /in/bi70D on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_AS, expecting ';' in 22Z2N on line 3
Process exited with code 255.

preferences:
175.32 ms | 1395 KiB | 49 Q