3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function custName($name = "Busi") { echo "The customer's name is " .$name."."; } $name(); ?>
based on tEH1g
Output for 7.0.0 - 7.2.6
Notice: Undefined variable: name in /in/ka2pl on line 6 Fatal error: Uncaught Error: Function name must be a string in /in/ka2pl:6 Stack trace: #0 {main} thrown in /in/ka2pl on line 6
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: name in /in/ka2pl on line 6 Fatal error: Function name must be a string in /in/ka2pl on line 6
Process exited with code 255.