<?php class Foo { public static function instantiate() { return new static; } } class Bar extends Foo {} var_dump(Bar::instantiate()); echo Bar::class;
You have javascript disabled. You will not be able to edit any code.