Is there a windows program to automatically indent/tidy up PHP source code?
This type of tool is generically called a "Pretty Printer". A quick Google search shows many options for PHP source code.
Have a look at PHP_Beautifier. The package contains a .bat so you can run it from your dosprompt.
Eclipse PDT has a "Code Format" feature (Ctrl+Shift+F)