3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name; function Boo() { var_dump('func:', __FUNCTION__, __METHOD__); } trait Constants { public static function traitC () { return __METHOD__; } } class Foo { use Constants; public static function method () { return function () {};} } Boo(); $ref = new \ReflectionFunction(Foo::method()); \Reflection::export($ref);

preferences:
42.02 ms | 402 KiB | 5 Q