<?php spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = false): bool
<?php spl_autoload_register(function ($class) { if (stripos($class, 'PHPCompatibility') !== 0) { return; } $file = realpath(__DIR__) . DIRECTORY_SEPARATOR . strtr($class, '\\', DIRECTORY_SEPARATOR) . '.php'; if (file_exists($file)) { include_once $file; } }); }