3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function familyName($fname) { echo "$fname Refsnes.<br>"; } familyName(); ?>
based on 3Cvk2
Output for 7.1.0 - 7.2.6
Fatal error: Uncaught ArgumentCountError: Too few arguments to function familyName(), 0 passed in /in/lb3cC on line 6 and exactly 1 expected in /in/lb3cC:2 Stack trace: #0 /in/lb3cC(6): familyName() #1 {main} thrown in /in/lb3cC on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Warning: Missing argument 1 for familyName(), called in /in/lb3cC on line 6 and defined in /in/lb3cC on line 2 Notice: Undefined variable: fname in /in/lb3cC on line 3 Refsnes.<br>
Output for hhvm-3.15.4
Warning: familyName() expects exactly 1 parameter, 0 given in /in/lb3cC on line 3 Notice: Undefined variable: fname in /in/lb3cC on line 3 Refsnes.<br>