<?php class A{ public function __construct($b) { if($b) return new B(); } } class B{ public function __construct() { echo 'buidling B'; } } $c = new A(true); var_dump($c);
You have javascript disabled. You will not be able to edit any code.