My php version wont update windows 10 code example
Example: php version not update after windows env file
You can uninstall composer, and while re-installing it will ask you to point
at your PHP directory which is going to be C:\wamp64\bin\php (usually) at
that point you can choose which PHP version you would want to use. good
luck.