3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function load($test) { $logger->log[] = array('load', __FILE__, $test); return new $test(); } class foo {} $result = load('foo'); print_r($result);
Output for 4.3.0 - 7.1.0
foo Object ( )