If you are doing any more than simple scripting, the debugging section of PHPEd can come in pretty useful. you can monitor variables as they initialise and step through.
I think you have to pay for it though:
http://www.nusphere.com/
I'm still fond of good old var_dump for that purpose, but hey...