3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($param){} test();
Output for 7.1.0 - 7.3.0rc3
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in /in/8vRgI on line 4 and exactly 1 expected in /in/8vRgI:3 Stack trace: #0 /in/8vRgI(4): test() #1 {main} thrown in /in/8vRgI on line 3
Process exited with code 255.
Output for 5.1.0 - 5.6.38, 7.0.0 - 7.0.31
Warning: Missing argument 1 for test(), called in /in/8vRgI on line 4 and defined in /in/8vRgI on line 3
Output for hhvm-3.22.0
Warning: test() expects exactly 1 parameter, 0 given in /in/8vRgI on line -1
Output for hhvm-3.10.1 - 3.21.3
Warning: test() expects exactly 1 parameter, 0 given in /in/8vRgI on line 3
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for test() in /in/8vRgI on line 3