3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function dummy (&$refparam) { var_dump($refparam); } $a = "value"; call_user_func_array("dummy", array($a)); call_user_func_array("dummy", array(&$a));
Output for hhvm-3.10.0 - 3.12.0, 7.1.0
Warning: Parameter 1 to dummy() expected to be a reference, value given in /in/X5hXv on line 9 string(5) "value" string(5) "value"
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Parameter 1 to dummy() expected to be a reference, value given in /in/X5hXv on line 9 string(5) "value"
Output for 4.3.0 - 5.2.17
string(5) "value" string(5) "value"