<?php class A { public function foo() : A { return (date('s') % 2) ? new self : null; } } $a = new A; $a->foo(); echo 'a';
You have javascript disabled. You will not be able to edit any code.