Versi PHP tidak diperbarui setelah file windows env

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.
Lokesh003Coding