3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function a() { } } class B { protected function a() { } } $method = new \ReflectionMethod('B', 'a'); var_dump($method->getPrototype());

preferences:
53.73 ms | 402 KiB | 5 Q