No doubt there are many natives php we use, but when it is start withn new xampp with in use php version 7.x we difficult to use that native php.
Here I wanna share to you how to use multiple php just one xampp
First you have to download the files that you need to use here
After downloading one of those file you have to extraxt it before you pute to xampp folder like this picture bellow :
- ScriptAlias /php5_6/ "C:/xampp/php5_6/"
- <Directory "C:/xampp/php5_6">
- AllowOverride None
- Options None
- Require all denied
- <Files "php-cgi.exe">
- Require all granted
- </Files>
- </Directory>
- Listen 8056
- <VirtualHost *:8056>
- UnsetEnv PHPRC
- <FilesMatch "\.php$">
- php_flag engine off
- SetHandler application/x-httpd-php5_6
- Action application/x-httpd-php5_6 "/php5_6/php-cgi.exe"
- </FilesMatch>
- </VirtualHost>
- ScriptAlias /php7_1/ "C:/xampp/php7_1/"
- <Directory "C:/xampp/php7_1">
- AllowOverride None
- Options None
- Require all denied
- <Files "php-cgi.exe">
- Require all granted
- </Files>
- </Directory>
- Listen 8071
- <VirtualHost *:8071>
- UnsetEnv PHPRC
- <FilesMatch "\.php$">
- php_flag engine off
- SetHandler application/x-httpd-php7_1
- Action application/x-httpd-php7_1 "/php7_1/php-cgi.exe"
- </FilesMatch>
- </VirtualHost>