<?php function test() { var_dump($this); } $closure = (new \ReflectionFunction('test'))->getClosure(); $object = new stdClass; $closure = $closure->bindTo($object, get_class($object)); $closure();
You have javascript disabled. You will not be able to edit any code.