3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function on($method = "GET", $url, $callback) {} on();
Output for 7.1.0 - 7.1.10
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 - 7.0.20
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 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