3v4l.org

run code in 200+ 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 7.1.0 - 7.2.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 - 7.0.20
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"