3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS; class Foo { public static function s() { var_dump(__CLASS__); //var_dump(self::class); } } $x = new Foo(); $x->s();

preferences:
25.94 ms | 402 KiB | 5 Q