3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function ra($test, $boo, $foo, $bar) { var_dump(func_get_args()); } ra('test','foo', 'bar');
based on m81hv
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function ra(), 3 passed in /in/7cTaq on line 7 and exactly 4 expected in /in/7cTaq:3 Stack trace: #0 /in/7cTaq(7): ra('test', 'foo', 'bar') #1 {main} thrown in /in/7cTaq on line 3
Process exited with code 255.
Output for 5.3.19 - 7.0.20
Warning: Missing argument 4 for ra(), called in /in/7cTaq on line 7 and defined in /in/7cTaq on line 3 array(3) { [0]=> string(4) "test" [1]=> string(3) "foo" [2]=> string(3) "bar" }