3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array(5,6,7); array_splice($x, 1, 0, array('ok')); var_dump($x);
Output for 4.3.0 - 7.2.6
array(4) { [0]=> int(5) [1]=> string(2) "ok" [2]=> int(6) [3]=> int(7) }