3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(&$a, &$b, $c) { var_dump($ab, $b, $c); } $x = 1; $y = 2; $z = 3; call_user_func_array("foo", array($x, $y, $z));
Output for 7.1.0 - 7.3.0rc4
Warning: Parameter 1 to foo() expected to be a reference, value given in /in/p5QUT on line 9 Warning: Parameter 2 to foo() expected to be a reference, value given in /in/p5QUT on line 9 Notice: Undefined variable: ab in /in/p5QUT on line 4 NULL int(2) int(3)
Output for 5.3.20 - 7.0.20
Warning: Parameter 1 to foo() expected to be a reference, value given in /in/p5QUT on line 9