I use Wamp but Xamp has the same behavior and I have a vhost for each system I use in my C: DEV directory. In case I do not move and it is interesting you leave your XAMP with the default setting and if you want to change you change in vhost that create.
So you must:
1) Download the version you want from PHP and paste into your XAMP folder that contains PHP:
(no problem having the other versions, in vhost you switch to the PHP version you want to use)
2) Change according to your old file what you need in php.ini (extensions, directory, etc)
3) Create vhost for your website and enter the php configuration you want. Example:
(the configuration below assumes that you have the files of your site in the directory 'C:/DEV/seusistema', adapt your folder)
<VirtualHost *:80>
DocumentRoot "C:/DEV/seusistema/public"
ServerName seusistema
<Directory "C:/DEV/seusistema/public">
Options -Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Require all granted
</Directory>
<Files ~ "\.php$>"
AddHandler fcgid-script .php
FcgidWrapper "c:/WAMP/PHP-7.2.12-NTS-WIN64-VC15/php-cgi.exe" .php
</Files>
</VirtualHost>
This answer on Soen may help you: http://stackoverflow.com/a/4792439/2570426
– viana
It did, thank you!
– L. Alves
I believe it is not possible without uninstalling the previous version. however you can backup the database and projects, uninstall and install the new version. at the end import the database and paste the projects. follows a tutor’s link: https://medium.com/@Asif.Rocks/how-to-upgrade-xampp-in-windows-the-easy-way-93031fc923ce NOTE: Do not forget to copy htdocs.
– Gilson Sales
Follow full tutorial on this link
– isaacmeira