First download PHP binary form here https://www.php.net/downloads
Then extract file to any location and copy the path.
Got to edit the system environment variable by typing environment to start
Advanced tab -> Environment variables -> System variables -> Path -> Edit -> Double click and past the path then ok.