3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function answer(){ return 42; } function add_up($a,$b){ return $a + $b ; } $func1 = 'answer'; $num1 = $func1; echo $num1; $func2 = 'add_up'; $num2 = $func2(4,5); echo $num2; ?>
based on 3n6Br
Output for 4.3.0 - 7.2.0
answer9