3v4l.org

run code in 300+ PHP versions simultaneously
<?php class blah { public function create() { return new static(); } public function test() { echo 'test'; } } $blah = blah::create(); var_dump($blah->test());

preferences:
53.31 ms | 402 KiB | 5 Q