3v4l.org

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

preferences:
182.84 ms | 1395 KiB | 62 Q