3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function callbackTest($param){ foreach($param as $p){ echo "number ".$p." called in callback \n"; } } call_user_func("callbackTest", array(1,2,3,4,5));
based on Ddu5h
Output for 4.3.0 - 7.2.0
number 1 called in callback number 2 called in callback number 3 called in callback number 4 called in callback number 5 called in callback