<?php class A { public $x; public function foo() { $this->x(42); } } $a = new A; $a->x = function($v) {var_dump($v);}; ($a->foo)();
You have javascript disabled. You will not be able to edit any code.