3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo ($firstname) { } foo();
Output for 7.1.7
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 0 passed in /in/MiJW9 on line 7 and exactly 1 expected in /in/MiJW9:3 Stack trace: #0 /in/MiJW9(7): foo() #1 {main} thrown in /in/MiJW9 on line 3
Process exited with code 255.