3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo ($q=1, $e){ } foo(2);
Output for 7.1.0 - 7.2.6
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 1 passed in /in/R114k on line 7 and exactly 2 expected in /in/R114k:3 Stack trace: #0 /in/R114k(7): foo(2) #1 {main} thrown in /in/R114k on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Warning: Missing argument 2 for foo(), called in /in/R114k on line 7 and defined in /in/R114k on line 3
Output for hhvm-3.15.4
Warning: foo() expects exactly 2 parameters, 1 given in /in/R114k on line 5