Through the development environment, how can we run the PHP code on a local server? Before running the PHP file, you should have your own pc setup…