This means that you have another PHP installation on your system. Check Programs on the Control Panel and remove such an installation.
However, you can also change your PATH environment variable. Procedure
Just remove the path pointing to any PHP installation directory.
Otherwise, if you are not sure about changing the PATH variable (which can lead to serious problems if it is not set well), you can simply delete the directory where the PATH variable points to .... (I mean the PHP directory)
An absolutely best solution is to add the path to your PHP7 bin PHP7 at the beginning of the PATH variable. You must also make composer available in this PHP7 bin directory.
For example, replace C:\php in your path with C:\wamp\bin\php7 or whatever the location of PHP7 ..
source share