3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Apple { public function firstMethod() { } final public function secondMethod() { } public static function thirdMethod() { } protected function fMethod() { } final protected function gMethod() { } private static function hMethod() { } } $class = new ReflectionClass('Apple'); $methods = $class->getMethods(ReflectionMethod::IS_PUBLIC ^ ReflectionMethod::IS_STATIC); var_dump($methods);

preferences:
48.18 ms | 402 KiB | 5 Q