3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function inc($a, $b, $c) { ++$a; ++$b; ++$c; } $a = 1; $b = 2; $c = 3; $params = array($a, $b, $c); call_user_func_array('inc', $params); var_dump($params);
based on kYKio
Output for 4.3.0 - 7.2.0
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }