3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.