3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_array = new array(1,2,3); foreach ($_array as $key) { echo $key; }
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected 'array' (T_ARRAY) in /in/ju470 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_ARRAY in /in/ju470 on line 5
Process exited with code 255.