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