Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Register given function as __autoload() implementation
<?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;

        }

    });

}