I've installed two xampp in different drives(windows) as follow:
Drive G: xampp (php 5.6)
Drive C: xampp (php 7.2)
I've also set environmental variable to php 7 drive in PATH variable. But still getting error during installing latest laravel that:
This package requires php >=7.0.0 but your PHP version (5.6.35) does not satisfy that requirement.
When I run following command in CMD it also shows php 5.6.3:
php -v
System is restarted, CMD is restared, what else I missed or have to do so that I can get latest PHP version? The strange thing is that when I run php file in xampp with 7 version it shows PHP 7.2.4 in phpinfo().
Note: I do need php 5.6 for other old projects that's why I can't delete second xampp.