PHP scripts can be created or edited with any text program such as Notepad; however, there are many tools that can make creating PHP pages easier and faster. One of them is PHPEd, a commercial product with built-in functions, debugger, project management, and more.
If you are searching for a free editor that would provide debugging you could look into Aptana, but you will likely need to install a PHP plugin in order to add debug functionality