3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function finish($out) { return var_export($GLOBALS['foo'], true) . $out; } $foo = new stdClass(); ob_start('finish'); var_dump($foo);
based on rsU8v
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
NULLobject(stdClass)#1 (0) { }
Output for hhvm-3.12.14 - 3.17.3
stdClass::__set_state(array( ))object(stdClass)#1 (0) { }