3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function on($method = "GET", $url, $callback) {} on();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function on(), 0 passed in /in/8I8iP on line 5 and exactly 3 expected in /in/8I8iP:2 Stack trace: #0 /in/8I8iP(5): on() #1 {main} thrown in /in/8I8iP on line 2
Process exited with code 255.
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 2 for on(), called in /in/8I8iP on line 5 and defined in /in/8I8iP on line 2 Warning: Missing argument 3 for on(), called in /in/8I8iP on line 5 and defined in /in/8I8iP on line 2
Output for hhvm-3.12.0
Warning: on() expects exactly 3 parameters, 0 given in /in/8I8iP on line 2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.5
Warning: Missing argument 2 for on() in /in/8I8iP on line 2 Warning: Missing argument 3 for on() in /in/8I8iP on line 2