PVM: allows you to easily download and install PHP for Windows operating system and quickly switch between PHP versions.
$ npm install -g pvm-windows
Add the %PHP_SYMLINK%
variable to the PATH
$ pvm install 7.4
$ pvm use 7.4
$ php -v
The above command will install PHP 7.4 and set it as the default version.
$ pvm --help