3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait { public static function testStaticFunction() { return __CLASS__; } } class Tester { use TestTrait; } $tester = Tester::testStaticFunction(); get_defined_constants(); echo "It Worked!";

preferences:
63.43 ms | 402 KiB | 5 Q