3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($params) { var_dump(func_get_args()); $params['hello'] = 2; var_dump(func_get_args()); } test();
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in /in/vSldn on line 10 and exactly 1 expected in /in/vSldn:3 Stack trace: #0 /in/vSldn(10): test() #1 {main} thrown in /in/vSldn on line 3
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Warning: Missing argument 1 for test(), called in /in/vSldn on line 10 and defined in /in/vSldn on line 3 array(0) { } array(0) { }