Try Now Online:
You can always run you php code with our online compiler just click on
You can try it here
<?php echo “hello world”; ?>
On Windows PC:
You can install binary executable PHP from the official site:
But Xampp server is an extremely popular server for PHP and we will also recommend using Xampp server.
Xampp has Apache server and also inbuilt MySQL server which we will use in our later courses and is extremely stable and runs on windows smoothly giving maximum uptime.
You can download Xampp server from:
We are using xampp-win32-5.5.35
Step 1 :
This is the default directory of installation you can change it accroding to your convinience. But it is important that you remember that location.
After Installation is complete and Xampp is launched you start Apache server.
Running PHP file :
In the installation directory you can find a folder
Assuming that you have installed in default directory and php file to be tested is
- Open location :
C:\xampp\htdocs\and copy test file here.
- Now open web browser and enter
http://localhost:80/test.phpin address bar.
Note : My port is 80 for Apache server(HTTP) it may be different in your case. You can check that from Xampp control panel.