3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function barber($type) { echo "You wanted a $type haircut, no problem\n"; } call_user_func('barber', "mushroom"); call_user_func('barber', "shave");
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
You wanted a mushroom haircut, no problem You wanted a shave haircut, no problem