3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function dump() { var_dump(get_class($this)); var_dump(self::class); var_dump(get_class()); var_dump(get_class(null)); } } (new Foo())->dump();

preferences:
37.48 ms | 404 KiB | 5 Q