3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function ra($test, $boo, $foo, $bar) { var_dump(get_defined_vars()); } ra('test','foo', 'bar');
based on 7cTaq
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function ra(), 3 passed in /in/uh22k on line 7 and exactly 4 expected in /in/uh22k:3 Stack trace: #0 /in/uh22k(7): ra('test', 'foo', 'bar') #1 {main} thrown in /in/uh22k 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/uh22k on line 7 and defined in /in/uh22k on line 3 array(3) { ["test"]=> string(4) "test" ["boo"]=> string(3) "foo" ["foo"]=> string(3) "bar" }