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