3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a($b = 3, $c = 2, $e){ return $b+$c+$e; } echo a(3);
based on 9OT7O
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function a(), 1 passed in /in/8AeNi on line 10 and exactly 3 expected in /in/8AeNi:3 Stack trace: #0 /in/8AeNi(10): a(3) #1 {main} thrown in /in/8AeNi on line 3
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Warning: Missing argument 3 for a(), called in /in/8AeNi on line 10 and defined in /in/8AeNi on line 3 Notice: Undefined variable: e in /in/8AeNi on line 5 5