3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function lol($msg = null, $arr) { var_dump($msg); } lol();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function lol(), 0 passed in /in/ICqlD on line 8 and exactly 2 expected in /in/ICqlD:4 Stack trace: #0 /in/ICqlD(8): lol() #1 {main} thrown in /in/ICqlD on line 4
Process exited with code 255.
Output for 5.1.0 - 7.0.14
Warning: Missing argument 2 for lol(), called in /in/ICqlD on line 8 and defined in /in/ICqlD on line 4 NULL
Output for 4.3.0 - 5.0.5
Warning: Missing argument 2 for lol() in /in/ICqlD on line 4 NULL