3v4l.org

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

preferences:
48.82 ms | 402 KiB | 5 Q