If you are using WAMP it should not be the case of installation problem because WAMP has its pre-configured installation for you. You just need to start all services if they are not started by default.
Once all the installations are started, then click on the icon on the task bar (bottom right in your screen) then click on 'localhost'. This will call a page in your default browser with the project listing in WAMP document root. Normally the folder named 'www' inside 'wamp' folder in your installation drive i.e. C:\wamp\www or D:\wamp\www. If you can see the WAMP welcome page in your browser then it is for sure that your PHP is running correctly.
Now to test your own code, just create a file with .php extension and some PHP code enclosed PHP tag, i.e. your file name is: phpinfo.php
When you try in your browser http://localhost/phpinfo.php, then you have a page with PHP and server information in your PC.
<?php phpinfo(); ?>
or simply try the following code:
If you can see 'Hello codibel, how are you?' in the browser, then your PHP is running quite good. Otherwise come again with your other problems and your work around.
echo 'Hello codibel, how are you?';