3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
stdClass Object ( [baz] => 1 )
Output for 4.3.0 - 4.4.9
stdClass Object ( )