3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function x($a, $b) { var_dump(array_slice(func_get_args(), 2)); } x(1,2); x(1,2,3,4); x(1,2,3,4,5);
Output for 4.3.0 - 7.1.0
array(0) { } array(2) { [0]=> int(3) [1]=> int(4) } array(3) { [0]=> int(3) [1]=> int(4) [2]=> int(5) }