How to install different PHP version in xampp in windows10

 


ScriptAlias /php710 "C:/xampp/php710"

Action application/x-httpd-php71-cgi /php710/php-cgi.exe

<Directory "C:/xampp/php710">

    AllowOverride None

    Options None

    Require all denied

    <Files "php-cgi.exe">

        Require all granted

    </Files>

</Directory>


<Directory "C:\xampp\htdocs\magento228">

    UnsetEnv PHPRC

    <FilesMatch "\.php$">

        SetHandler application/x-httpd-php71-cgi

    </FilesMatch>

</Directory>


https://windows.php.net/downloads/releases/archives/