I think the safest way to migrate from PHP7 to PHP5 in Xampp is:
Download the self-packaged version of Xampp with PHP5 from here (today it is xampp-win32-5.6.37-0-VC11.zip ).
Rename the php folder to php7 in Xampp.
Now copy the php folder from xampp-win32-5.6.37-0-VC11.zip to the Xampp installation folder.
Make a backup copy of the file \xampp\apache\conf\extra\httpd-xampp.conf .
Replace also this file from xampp-win32-5.6.37-0-VC11.zip .
Thus, configuration files (including php.ini ) have settings from the Xampp command.
It should be noted that please download the PHP 5 and 7 Xampp packages released at the same time.
Let me know if I miss something.
source share