3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test ($a, $a, $a, $a, $a) { var_dump (func_num_args ()); var_dump (func_get_args ()); var_dump ($a); } test (1, 2, 3, 4, "kumquat");
Output for 4.3.0 - 5.6.28
int(5) array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> string(7) "kumquat" } string(7) "kumquat"