3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($params) { var_dump(func_get_args()); $params['hello'] = "you"; var_dump(func_get_args()); } test(array("toto" => "bite"));
based on vSldn
Output for 7.0.0 - 7.2.0
array(1) { [0]=> array(1) { ["toto"]=> string(4) "bite" } } array(1) { [0]=> array(2) { ["toto"]=> string(4) "bite" ["hello"]=> string(3) "you" } }
Output for 5.3.20 - 5.6.28
array(1) { [0]=> array(1) { ["toto"]=> string(4) "bite" } } array(1) { [0]=> array(1) { ["toto"]=> string(4) "bite" } }