3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($a) { unset($a); print count($a); } test();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in /in/oSQdG on line 7 and exactly 1 expected in /in/oSQdG:2 Stack trace: #0 /in/oSQdG(7): test() #1 {main} thrown in /in/oSQdG on line 2
Process exited with code 255.
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 1 for test(), called in /in/oSQdG on line 7 and defined in /in/oSQdG on line 2 Notice: Undefined variable: a in /in/oSQdG on line 4 0
Output for hhvm-3.10.0 - 3.12.0
Warning: test() expects exactly 1 parameter, 0 given in /in/oSQdG on line 3 Notice: Undefined variable: a in /in/oSQdG on line 4 0
Output for 5.2.3 - 5.4.45
Warning: Missing argument 1 for test(), called in /in/oSQdG on line 7 and defined in /in/oSQdG on line 2 0
Output for 5.1.0 - 5.2.2
<br /> <b>Warning</b>: Missing argument 1 for test(), called in /in/oSQdG on line 7 and defined in <b>/in/oSQdG</b> on line <b>2</b><br /> 0
Output for 4.3.0 - 5.0.5
<br /> <b>Warning</b>: Missing argument 1 for test() in <b>/in/oSQdG</b> on line <b>2</b><br /> 0