3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function f($a) { return $a; } f(); echo 'k';
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in /in/tBtKh on line 7 and exactly 1 expected in /in/tBtKh:5 Stack trace: #0 /in/tBtKh(7): f() #1 {main} thrown in /in/tBtKh 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/tBtKh on line 7 and defined in /in/tBtKh on line 5 Notice: Undefined variable: a in /in/tBtKh on line 5 k
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for f() in /in/tBtKh on line 5 k