3v4l.org

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