3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function plop(&$a, &$b) { return $a *b; } $plop = call_user_func_array('plop', Array(1,2)); echo "plop is $plop";
Output for 7.1.0
Warning: Parameter 1 to plop() expected to be a reference, value given in /in/OSJva on line 8 Warning: Parameter 2 to plop() expected to be a reference, value given in /in/OSJva on line 8 Notice: Use of undefined constant b - assumed 'b' in /in/OSJva on line 4 Warning: A non-numeric value encountered in /in/OSJva on line 4 plop is 0
Output for 7.0.0 - 7.0.14
Warning: Parameter 1 to plop() expected to be a reference, value given in /in/OSJva on line 8 plop is
Output for 4.3.0 - 5.6.28
Notice: Use of undefined constant b - assumed 'b' in /in/OSJva on line 4 plop is 0