Step 1 : download xampp version 7.1.32
Step 2: Once you’ve downloaded it, unpack it to find the php and apache folders.
Step 3: In C:xampp, rename the php and apache folders.

Step 4: Paste the php and apache folders from the extract folder into C:xampp.
Step 5: Restart Apache and MySQL, then use the command “php -v” to check the PHP version.