3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo(&$bar) { var_dump($bar); } $z = new stdclass; $v = array_merge(array(&$z), array($x)); call_user_func_array("foo", $v);
based on Hd5Fh
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: x in /in/KoR2W on line 4 object(stdClass)#1 (0) { }
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: x in /in/KoR2W on line 4 object(stdClass)#1 (0) { }
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: x in /in/KoR2W on line 4 object(stdClass)(0) { }