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 Abs { } $x = new Test; echo $x;

preferences:
35.2 ms | 402 KiB | 5 Q