My script runs with register_globals ON and I'm trying to find all the undefined variables there are with error_reporting(E_ALL); That shows me undefined constants and a bunch of other stuff as well, would there be a way to ONLY show undefined variable messages? (Notice: Undefined variable: varrr in file.php line 3)
You could check your error logs and do a search for Undefined variable. If you have access to the error log on the server, something like this should work: tail -n 1000 error_log | grep "Undefined variable"
The first thing that comes to mind is using http://www.php.net/set_error_handler to filter out the messages I don't want to see.