<?php class A { public function create() { return new self(); } } class B extends A { } $a = new A(); var_dump($a->create() instanceof B);
You have javascript disabled. You will not be able to edit any code.