3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($a) { } set_error_handler(function($a) { var_dump($a); }); test();
based on fTSen
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in /in/P9M9U on line 9 and exactly 1 expected in /in/P9M9U:2 Stack trace: #0 /in/P9M9U(9): test() #1 {main} thrown in /in/P9M9U on line 2
Process exited with code 255.
Output for 5.3.19 - 7.0.20
int(2)