3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function one() {} static public function two() {} static protected function three() {} } $class = new ReflectionClass(Foo::class); $methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC); foreach ($methods as $method) { var_dump($method); }

preferences:
104.47 ms | 404 KiB | 5 Q