You can run Apache and PHP on your desktop although the versions are slightly different to what a server would be running. If the code is really really old there may be some things that are deprecated in newer versions of PHP which might break it but if you run it on PHP 5.6 I don't think you'll find too many. Netbeans is good and free as an IDE, the latest versions need the Java SDK to install.
|