3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class_name) { include $class_name . '.php'; } $class = 'Foo..Test'; class_exists($class); var_dump($class instanceof stdClass); ?>
based on L9JEN
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/q1E3r on line 4 bool(false)
Output for 5.4.24 - 7.1.10
bool(false)
Output for 5.3.17 - 5.4.23
Warning: include(Foo..Test.php): failed to open stream: No such file or directory in /in/q1E3r on line 5 Warning: include(): Failed opening 'Foo..Test.php' for inclusion (include_path='.:') in /in/q1E3r on line 5 bool(false)