3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(1,2,3,4,5,6,7,8); $array2 = array('a','b','c','d','e','f','g'); array_splice($array1, 1,1,$array2); print_r $array1;
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$array1' (T_VARIABLE) in /in/U3als on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/U3als on line 7
Process exited with code 255.