This video shows you a step by step guide on how to run PHP from the command line. You will come to know how to install PHP, set environment variable for PHP and use php command.
To download PHP, visit https://windows.php.net/download/
To learn to install WAMP server, watch • Lesson 2.1: How to install WAMP server