3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function f($x) {} f(null); f();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in /in/npMJH on line 9 and exactly 1 expected in /in/npMJH:5 Stack trace: #0 /in/npMJH(9): f() #1 {main} thrown in /in/npMJH on line 5
Process exited with code 255.
Output for 5.1.0 - 7.0.14
Warning: Missing argument 1 for f(), called in /in/npMJH on line 9 and defined in /in/npMJH on line 5
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for f() in /in/npMJH on line 5