3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function f($a) { return true; } f(); echo 'k';
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in /in/18PIA on line 7 and exactly 1 expected in /in/18PIA:5 Stack trace: #0 /in/18PIA(7): f() #1 {main} thrown in /in/18PIA on line 5
Process exited with code 255.
Output for 5.1.0 - 7.0.20
Warning: Missing argument 1 for f(), called in /in/18PIA on line 7 and defined in /in/18PIA on line 5 k
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for f() in /in/18PIA on line 5 k