

Just add the following at the bottom of the config file to set directories. Now you can set directories that will run in php 5.6. Note: You can add more versions of PHP to your xampp installation following step 1 to 3 if you want. A text file will open up put the following settings at the bottom of the file: ScriptAlias / php56 "C:/xampp/php56" AllowOverride None Options None Require all denied Open xampp control panel, click config button for apache, and click Apache (nf). Then uncomment the following line: extension_dir = "ext" If the file does not exist copy php.ini-developmentto php.ini and open it in notepad. Open c:\xampp\php56\php.ini file in notepad.


Download the php zip archive from here and extract the files under c:\xampp\php56. So you have php 7 running under xampp, you want to add an older php version to it, say php 5.6. Then you can set an older PHP version on a different port (say 8056) so when you go to runs php 7 and when you go to runs php 5.6.
