3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('allow_call_time_pass_reference','Off'); class Foo2{function bar2($a,&$b,$c){return func_get_args();}} $foo=new Foo2(); $aa='A'; $bb='B'; $cc='C'; call_user_func_array(array($foo,'bar2'),array($aa,&$bb,$cc));
based on XYu3t
Output for 4.3.0 - 7.2.0