windows change php version code example
Example 1: update composer php version
php7.3 -f /usr/local/bin/composer update
Example 2: update php version windows
Take a backup of your htdocs and data folder (subfolder of MySQL folder), reinstall upgraded version and replace those folders.
Note: In case you have changed config files like PHP (php.ini), Apache (httpd.conf) or any other, please take back up of those files as well and replace them with newly installed version.