3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr=array('a'=>123, 'b'=>456); $brr=array_slice($arr); print_r($brr);
Output for 5.2.6 - 7.1.0
Warning: array_slice() expects at least 2 parameters, 1 given in /in/qjan6 on line 3
Output for 4.3.0 - 5.2.5
Warning: Wrong parameter count for array_slice() in /in/qjan6 on line 3