View a PHP Closure's Source
Is it possible to reflect into or otherwise view the source of a PHP closure object? That is, if I do something like this $closure = function() { return 'Hi There'; }; and then something like this var_dump($closure); PHP outputs object(Closure)[14] That is, I know the object's a closure, but I have no idea what it does. I'm looking for a reflection method, function, or debugging extension that will allow me to dump the actual body of anonymous function. What you can get from PHP is limited, using reflection you can just obtain the parameter signature of the function and the start and ending