Supported Versions: PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a case-insensitive substring in a string
<?php stripos(string $haystack, string $needle, int $offset = 0): int|false
<?php             foreach (array_reverse($loadedClasses) as $loadedClass) {

                $offset = 0 - strlen($suiteClassName);



                if (stripos(substr($loadedClass, $offset - 1), '\\'.$suiteClassName) === 0 ||

                    stripos(substr($loadedClass, $offset - 1), '_'.$suiteClassName) === 0) {

                    try {

                        $class = new ReflectionClass($loadedClass);
<?php                 $offset = 0 - strlen($suiteClassName);



                if (stripos(substr($loadedClass, $offset - 1), '\\'.$suiteClassName) === 0 ||

                    stripos(substr($loadedClass, $offset - 1), '_'.$suiteClassName) === 0) {

                    try {

                        $class = new ReflectionClass($loadedClass);