3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=Array ( [0] => 2 [1] => 1 [2] => 3 [3] => 5 [4] => 1 [5] => 2 [6] => 1 [7] => 4 [8] => 2 ); print_r($array);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '[', expecting ')' in /in/T87iP on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[', expecting ')' in /in/T87iP on line 6
Process exited with code 255.

preferences:
187.72 ms | 1395 KiB | 60 Q