When I want to develop a php website, it is always be hard to run and test the php code on local machine.
After I search how to run php on local machine, I found an awesome tool for this.
XAMPP is a great open source software that helps you run php on local, and also it runs MySQL Server service, Filezilla FTP.
Simply download xampp and install it, I select the run apache as service option.
By its default, it installs into C:\xampp directory,
you can copy your php files into C:\xampp\htdocs directory, and open in your browser.