3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($id = null, $foo, $bar) {} f();
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in /in/4lWYM on line 5 and exactly 3 expected in /in/4lWYM:3 Stack trace: #0 /in/4lWYM(5): f() #1 {main} thrown in /in/4lWYM on line 3
Process exited with code 255.
Output for 5.3.21 - 7.0.20
Warning: Missing argument 2 for f(), called in /in/4lWYM on line 5 and defined in /in/4lWYM on line 3 Warning: Missing argument 3 for f(), called in /in/4lWYM on line 5 and defined in /in/4lWYM on line 3