The trouble is that many PHP scripts dynamically include other files and variables being dynamically typed ... you really need to run the script to see what happens.
Good point! I wonder if something like this could be added to xdebug or a new extension? TBH I like the idea just dont really think it belongs in the core. Regards Marco