<?php


$result = [];

foreach (get_declared_classes() as $className) {
    $ref = new ReflectionClass($className);

    // Only native (internal) classes
    if (!$ref->isInternal()) {
        continue;
    }

    $statics = [];
    foreach ($ref->getMethods(ReflectionMethod::IS_STATIC) as $method) {
        // Only methods declared by this class, not inherited ones
        if ($method->class === $className) {
            $statics[] = $method->getName();
        }
    }

    if ($statics) {
        $result[$className] = $statics;
    }
}

ksort($result);

foreach ($result as $class => $methods) {
    echo $class . ': ' . implode(', ', $methods) . PHP_EOL;
}