There is such a code
<?php class C { } class B { public function __construct() { return new C(); } } class A extends B { } var_dump(new A()); It prints the following: object(A)#1 (0) {} , which means that I get an instance of class A
Is it possible to get an instance of class C this way?