I need a way to see all the defined variables of the current PHP instance.
By currently defined I mean all the globals, all the local to THIS scope and all the locals to other scopes.
Is there something built in?
I need a way to see all the defined variables of the current PHP
Share
For everything in the current scope:
I don’t think there is a solution to dump all variables from all scopes, because you would have to actually run those functions/methods to get a complete and intact map of all available variables (variables could get created, added and removed at runtime).
You may have to look into Unit Testing or code coverage tools to see whether you can use anything from those areas, but it’s going to be a lot of work.
What do you need this for?