3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function dummy (&$refparam) { var_dump($refparam); } call_user_func_array("dummy", array($a)); call_user_func_array("dummy", array(&$a));
Output for 7.1.0 - 7.2.0
Notice: Undefined variable: a in /in/JNA3q on line 7 Warning: Parameter 1 to dummy() expected to be a reference, value given in /in/JNA3q on line 7 NULL NULL
Output for 5.3.0 - 7.0.20
Notice: Undefined variable: a in /in/JNA3q on line 7 Warning: Parameter 1 to dummy() expected to be a reference, value given in /in/JNA3q on line 7 NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: a in /in/JNA3q on line 7 NULL NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/JNA3q on line 7 NULL NULL