3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace LOLOL; abstract class Abs { public function __toString() { return strtolower(self::class); /* Should print test, not abs :P */ } } class Test extends Abs { } $x = new Test; echo $x;

preferences:
37.95 ms | 402 KiB | 5 Q