3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function plop(&$a, &$b) { return $a * $b; } $c = 3; $d = 4; $params = Array($c, $d); $plop = call_user_func_array('plop', $params); echo "plop is $plop";
Output for hhvm-3.10.0 - 3.12.0, 7.1.0
Warning: Parameter 1 to plop() expected to be a reference, value given in /in/Md7hC on line 12 Warning: Parameter 2 to plop() expected to be a reference, value given in /in/Md7hC on line 12 plop is 12
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Parameter 1 to plop() expected to be a reference, value given in /in/Md7hC on line 12 plop is
Output for 4.3.0 - 5.2.17
plop is 12