3v4l.org

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