3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function f($a) { return true; } f(); echo 'k';
Output for 7.1.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 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 1 for f(), called in /in/18PIA on line 7 and defined in /in/18PIA on line 5 k
Output for hhvm-3.10.0 - 3.12.0
Warning: f() expects exactly 1 parameter, 0 given 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