In this blog We’re going to upgrade PHP version 7.4 to PHP version 8.0 and I will also show you how to go back to the older PHP version.
I have xampp version 8.0.28
Start Xampp
Type url “http://localhost/dashboard/phpinfo.php” in browser
You can see currently i have php version 7.4
Now stop both apache and MySql in Xampp
Open Xampp directory rename apache folder to apache_old and php folder to php_old.
Next go to link “https://sourceforge.net/projects/xampp/files/”
Select “XAMPP Windows”.
I have download version 8.0.11
Next download from option “xampp-portable-windows-x64-8.0.11-2-VS16.zip”
After Download extract folder from zip
Copy the new apache and php folders and paste them to the XAMPP directory
Open the php.ini file in the new php folder and edit the path to point to the XAMPP directory.
Find path
Change XAMPP directory path according your installation and Save file
Start XAMPP and check your php version
Suggested post : How to Create WordPress Widget