3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class_name) { include $class_name . '.php'; } $class = 'Foo..Test'; if ($class instanceof stdClass) print "ok"; ?>
based on bhY8R
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/2ge6B on line 4
Output for 5.3.17 - 7.1.10