3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"purple","b"=>"orange"); print_r(array_splice($a1,0,3,$a2)); ?>
Output for 4.3.0 - 7.1.0
Array ( [a] => red [b] => green [c] => blue )