3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a($a) { var_dump(func_get_args()); var_dump(func_num_args()); var_dump(array_slice(func_get_args(), 1)); } a(1, 2, 3);
based on HC9qS
Output for 4.3.0 - 7.2.0
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } int(3) array(2) { [0]=> int(2) [1]=> int(3) }