3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function ab($a, $b) { echo __FILE__; } ab('a');
based on OEpA7
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function ab(), 1 passed in /in/HHcS4 on line 7 and exactly 2 expected in /in/HHcS4:2 Stack trace: #0 /in/HHcS4(7): ab('a') #1 {main} thrown in /in/HHcS4 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 ab(), called in /in/HHcS4 on line 7 and defined in /in/HHcS4 on line 2 /in/HHcS4
Output for hhvm-3.12.0
Warning: ab() expects exactly 2 parameters, 1 given in /in/HHcS4 on line 3 /in/HHcS4
Output for hhvm-3.10.0

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