For those who do not know how to change the PHP version for Composer when using WAMP on Windows :
Composer uses a version of PHP that can be run from the terminal. Thus, on Windows Composer (and therefore the terminal) knows the version of PHP from the Path system variable.
You can easily change the value inside System β Advanced system settings β environment variables. Inside the Path variable, there must be a value of type C:\wamp64\bin\php\php5.6.25 . After changing the value, a restart is required.
You can always find out the version of PHP in threads by running php -v inside the terminal.
source share