3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(11, 12, 13, 2, 8, 10); print_r(array_splice($arr, 0, 2)); print_r($arr);
based on 226V6
Output for 4.3.0 - 7.2.0
Array ( [0] => 11 [1] => 12 ) Array ( [0] => 13 [1] => 2 [2] => 8 [3] => 10 )