3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($bar){ var_dump($bar); } foo();
Output for 7.1.0 - 7.2.6
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 0 passed in /in/QOIos on line 9 and exactly 1 expected in /in/QOIos:3 Stack trace: #0 /in/QOIos(9): foo() #1 {main} thrown in /in/QOIos 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 1 for foo(), called in /in/QOIos on line 9 and defined in /in/QOIos on line 3 Notice: Undefined variable: bar in /in/QOIos on line 4 NULL
Output for hhvm-3.15.4
Warning: foo() expects exactly 1 parameter, 0 given in /in/QOIos on line 4 Notice: Undefined variable: bar in /in/QOIos on line 4 NULL