3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ra($test, $boo, $foo, $bar) { var_dump(func_get_args()); } ra('test','foo', 'bar');
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
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.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 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" }

preferences:
161.94 ms | 402 KiB | 215 Q