3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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/22Z2N 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.