You do not have to install another version of Xampp. I've managed to use PHP 5.6 on my Xampp PHP 7 version. Here is what you need to do to make it works:
<XAMPP_DIR>\php
to <XAMPP_DIR>\php~7
<XAMPP_DIR>\apache\conf\extra\httpd-xampp.conf
to <XAMPP_DIR>\apache\conf\extra\httpd-xampp~7.conf
<XAMPP_DIR>\php
<XAMPP_DIR>\apache\conf\extra\httpd-xampp.conf
and change all php5
occurrences to php7
. You need to change php7apache2_4.dll
to php5apache2_4.dll
, php7ts.dll
to php5ts.dll
and php7_module
to php5_module
extension_dir
in php.ini
.Restart Apache and voila.