3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
189.08 ms | 1399 KiB | 41 Q