3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bar = new stdClass(); function testfunc($foo = null) { $foo->baz = 1; } call_user_func_array('testfunc', array($bar)); print_r($bar);
Output for 5.0.0 - 7.1.7
stdClass Object ( [baz] => 1 )
Output for 4.3.0 - 4.4.9
stdClass Object ( )