3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.25
Parse error: syntax error, unexpected '=', expecting ')' in /in/vbJV1 on line 4
Process exited with code 255.