3v4l.org

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