PHP closures are pretty simple as they are barely more than syntactic sugar over the following:
class Something { function __construct($x) { $this->x = $x; } function __invoke($y) { extract(get_object_vars($this)); // Your closure here. } }
Becomes: