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 ''1'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/ccspY on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/ccspY on line 7
Process exited with code 255.

preferences:
176.2 ms | 1399 KiB | 60 Q