Been using XAMPP Portable on my Windows machine for some years now. Always a pain to upgrade the PHP version. Noting down the steps for future reference.
phpinfo()and check Architecture (x86, x64) and Thread Safety (enabled, disabled).
- Go to https://windows.php.net/download and download the correct zip file for the new PHP version. You may also need to download and install the Visual Studio Redistributable, also available on the same page on the sidebar.
- Copy the page source of
phpinfo()and paste in https://xdebug.org/wizard.php to analyze and get the correct Xdebug DLL for the new PHP version. Take note of the instructions returned with the analysis.
- Assuming XAMPP is currently installed in
- Unzip the zip file from php.net and copy the contents to
C:\xampp\php, overwriting existing files.
- Copy the Xdebug DLL to
C:\xampp\php\php.inias per the instructions returned with the analysis on the Xdebug wizard page.
- Restart Apache. You may need to restart Windows so that previous Apache processes are properly terminated.