3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ary = array('a','b','c','d','e'); $ary2 = array_slice($ary, 0,3); $ary3 = array_slice($ary, 4); print_r($ary2); print_r($ary3);
based on A4r6q
Output for 4.3.0 - 7.1.0
Array ( [0] => a [1] => b [2] => c ) Array ( [0] => e )