3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class f { function f(&$e, &$u, $f=false) { } } function getNew() { $a = func_get_args(); $c = array_shift($a); $r = new ReflectionClass($c); return $r->newInstanceArgs($a); } $e = new stdClass; $u = new stdClass; var_dump(getNew('f', &$e, &$u));
Output for 5.4.0 - 5.4.22
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of getNew(). in /in/L1Cml on line 22
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of getNew(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/L1Cml on line 22 Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of getNew(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/L1Cml on line 22 object(f)#4 (0) { }