src/Parser/ServerParse.php
public static function explainCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 6) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            $c5 = $stmt[++$offset];
            $c6 = $stmt[++$offset];
            $c7 = $stmt[++$offset];
            if (($c1 == 'X' || $c1 == 'x') && ($c2 == 'P' || $c2 == 'p')
                && ($c3 == 'L' || $c3 == 'l') && ($c4 == 'A' || $c4 == 'a')
                && ($c5 == 'I' || $c5 == 'i') && ($c6 == 'N' || $c6 == 'n')
                && ($c7 == ' ' || $c7 == '\t' || $c7 == '\r' || $c7 == '\n')) {
                return ($offset << 8) | self::EXPLAIN;
            }
        }
        if ($stmt != null && startsWith(strtolower($stmt), "explain2")) {
            return ($offset << 8) | self::EXPLAIN2;
        }
        return self::OTHER;
    }
public static function explainCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 6) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            $c5 = $stmt[++$offset];
            $c6 = $stmt[++$offset];
            $c7 = $stmt[++$offset];
            if (($c1 == 'X' || $c1 == 'x') && ($c2 == 'P' || $c2 == 'p')
                && ($c3 == 'L' || $c3 == 'l') && ($c4 == 'A' || $c4 == 'a')
                && ($c5 == 'I' || $c5 == 'i') && ($c6 == 'N' || $c6 == 'n')
                && ($c7 == ' ' || $c7 == '\t' || $c7 == '\r' || $c7 == '\n')) {
                return ($offset << 8) | self::EXPLAIN;
            }
        }
        if ($stmt != null && startsWith(strtolower($stmt), "explain2")) {
            return ($offset << 8) | self::EXPLAIN2;
        }
        return self::OTHER;
    }
EXPLAIN' '