$a = function () { return $this->x; }; class FooBar { private $x = 3; } $foobar = new FooBar; for ($i = 0; $i < 1000000; $i++) { $x = $a->bindTo($foobar, "FooBar"); $x(); }