3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = new array(); for(var i = 0; i < 48; i++) { $names[i] = "foo"; }; ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'array' (T_ARRAY) in /in/cJKUM on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ARRAY in /in/cJKUM on line 1
Process exited with code 255.

preferences:
204.93 ms | 1395 KiB | 64 Q