multiple php versions xampp code example
Example 1: install multiple php versions windows xampp
<VirtualHost localhost56:80>
DocumentRoot "C:\xampp\htdocs56"
ServerName localhost56
<Directory "C:\xampp\htdocs56">
Require all granted
</Directory>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php56-cgi
</FilesMatch>
</VirtualHost>
Example 2: install multiple php versions windows xampp
SetEnv PHPRC "\\path\\to\\xampp\\php"