Practicing your php coding follow this steps: Install WAMP server (Windows)
Go to http://www.wampserver.com/en/ and click “START USING WAMPSERVER”
Choose either the 64bit or 32bit version. (Most machines should run the 64 just fine but if in doubt choose 32)
Once your server is installed open a browser and go to http://localhost if it works then your install is finished.
Make sure to note where your php files are located in WAMP ie: C:\wamp64\www (move or delete all files in this folder now)