3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "abc", "bca", "def", "ghi" ); echo array[5]; ?>
Output for 5.3.0 - 5.3.17, 5.4.0 - 5.4.7
Parse error: syntax error, unexpected '[', expecting '(' in /in/eIGnK on line 10
Process exited with code 255.

preferences:
171.61 ms | 1395 KiB | 33 Q