<?php class A { public $a = 'public'; } $m = function (){ $x =& $this; $x = new stdClass; var_dump($this, $this->a); }; $a = new A; $m = $m->bindTo($a); $m();
You have javascript disabled. You will not be able to edit any code.