3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class_name) { include $class_name . '.php'; } /* Some code... */ if(isset($_GET['class'])) { $class = $_GET['class']; } else { die('No class to load'); } $obj = new $class; /* Some code... */ ?>
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/L9JEN on line 4 No class to load
Output for 5.3.17 - 7.1.10
No class to load