3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x[] = 3; $x["mary"] = "max"; $x[] = 4; for($x as $val){echo $val;} ?>
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'as' (T_AS), expecting ';' in /in/vX76p on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_AS, expecting ';' in /in/vX76p on line 7
Process exited with code 255.