3v4l.org

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