Here is a handy script that removes whitespace and comments from PHP code and it came via the rather excellent technical blog by Charles Reace.
Whilst I would argue that whitespace and comments don’t account for any real noticeable performance drop I guess it is good practice to perform obfuscation on any code that will be going into production, you do it with your JavaScript and CSS, so why not your PHP?
