You can uninstall composer, and while re-installing it will ask you to point at your PHP directory which is going to be C:wamp64inphp (usually) at that point you can choose which PHP version you would want to use. good luck.