<?php class x { public function method() { var_dump($this); } } $o = new x; $r = new ReflectionMethod($o, 'method'); $c = Closure::bind($r->getClosure($o), new stdClass()); $c();
You have javascript disabled. You will not be able to edit any code.