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'); $closure = $reflection->getClosure(null); $reflection2 = new \ReflectionFunction($closure); var_dump($closure, \Reflection::export($reflection), \Reflection::export($reflection2));

preferences:
34.18 ms | 402 KiB | 5 Q