<?php class a { function __invoke() { echo("Invoked\n"); } } class b { private a $a; function doStuff() { $this->a = new a(); ($this->a)(); } } $b = new b(); $b->doStuff();
You have javascript disabled. You will not be able to edit any code.