3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space; class Foo { public static function bar() { } } $reflection = new \ReflectionMethod('Name\\Space\\Foo', 'bar'); $reflection2 = new \ReflectionFunction($reflection->getClosure(null)); var_dump($reflection, $reflection2);

preferences:
43.69 ms | 402 KiB | 5 Q