3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NAME_SPACE; trait Bar { public static function qux() { var_dump(self::class, static::class); return new \ReflectionFunction(function () {}); } } class Foo { use Bar; } var_dump(Foo::qux()->getName()); Bar::qux();

preferences:
37.3 ms | 402 KiB | 5 Q