3v4l.org

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