<?php class Foo { public function __invoke(): self { return new self(); } public function bar(): self { return $this(); } } var_dump(new Foo()()()()->bar()()()()());
You have javascript disabled. You will not be able to edit any code.