How to upgrade php version on Windows 10 How to upgrade php version on Windows 10 windows windows

How to upgrade php version on Windows 10


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.

enter image description here


This means you have yet another installation of PHP in your system. Check your Programs in Control Panel and remove such installation.

However, you can modify your PATH environment variable as well. Procedure

Just remove the path that points to any PHP installation directory.

Else, otherwise, if you are unsure about changing the PATH variable (which can lead to serious problems if not set well), you can just delete the directory that the PATH variable points to.... (I mean the PHP directory)

The totally better solution is to add the path of your PHP7 bin directory at the beginning of the PATH variable. You should also make available composer in this PHP7 bin directory.

Such as, replace the C:\php in your path with C:\wamp\bin\php7 or whatever the location of the PHP7 path is..


To update PHP on Windows 10.

You must put the folder of the new PHP version in the same folder as the old.You rename the old folder or you delete it, prefer rename the old folder,now you write in a terminal console

php - v

PHP automatically check for a new version