PHP Tester allows you to enter PHP code and preview the results on the fly. You either simply write code directly into the embedded editor, or you can load any saved php file. Once your code is ready, just switch to the results tab and it will automatically generate a visible webpage.
This is an EXTREMELY good resource for learning PHP. Rather than requiring a dedicated server or a raw command line editor you can write code and test directly.