If you do not have access to a Linux server where you can run PHP code, you can install a development server on your own PC, even if is running on Windows.
This package will setup a server on your computer and you will be able to use the entire Apache, mySQL and PHP.
Is simple to start and stop the server. Also, a lot of shortcuts allows you to easily set different options. Just right click on right bottom icon of VertrigoServ and access different files and functions of your server.
You have access to phpMyAdmin, MySQL root console, configure httpd.conf (the core configuration file of Apache), php.ini file, view error logs and more.
This tool is great to test and develop PHP scripts on your Windows PC.