3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function a($time) { return new static(); } public static function b($time) { return new self(); } } var_dump(A::a()); var_dump(A::b());

preferences:
31.64 ms | 402 KiB | 5 Q