This is done with chocolatey installed.

  • Run Windows Powershell with admin rights
  • Execute choco upgrade php --version=8.2
  • Check current php version after installation with php -v

If still on old version:

  • Run windows search for "Edit the system environment variables"
  • Click on "Environment Variables"
  • Under "System variables", click on "Path" and Edit
  • Remove the outdated php directory (e.g. C:\xampp\php)
  • Notice the new php version path that has "php82"
  • Check php version

If still not updated:

  • Check php path with which php in git bash (the directory will be C:\xampp\php if it outputs /c/xampp/php/php)
  • Go to the new php version path and replace folder to the directory (have to rename the new folder to match the original, mine will be renamed from "php82" to "php")
  • Check php version
Answer from devon on Stack Overflow
🌐
HelpSpot
support.helpspot.com › index.php
3.1. Upgrading PHP on Windows
In order to upgrade your PHP version, you will want to download the latest compatible version of PHP from the Windows PHP distribution site: http://windows.php.net/download/.
Discussions

How to upgrade php version on Windows 10 - Stack Overflow
I'm trying to get my Laravel project to work. But when I use composer update it says the following: This package requires php >=5.6.4 but your PHP version (5.5.12) does not satisfy that requiremen... More on stackoverflow.com
🌐 stackoverflow.com
Upgrading PHP in XAMPP for Windows? - Stack Overflow
I was scared after I installed ... the new, updated version of XAMPP. 2012-12-11T17:31:58.263Z+00:00 ... I always used to do like this, but some databases in the backup data folder crashed when they are placed in the newly installed xampp folder. So, I'm always searching to upgrade PHP without apache ... More on stackoverflow.com
🌐 stackoverflow.com
how to install php in windows 11
This browser is no longer supported · Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support More on learn.microsoft.com
🌐 learn.microsoft.com
1
1
Updating PHP on Windows servers
I’ve just inherited some customer facing web servers and have been asked by the security team to update PHP on them, as they are “slightly” out of date. I’ve never had anything to do with PHP before, have no idea what it is, how it works or anything… and I am looking for some ... More on community.spiceworks.com
🌐 community.spiceworks.com
13
8
December 17, 2024
🌐
sebhastian
sebhastian.com › how-to-update-php
How to update PHP version | sebhastian
July 25, 2022 - Download and extract the zip file from the website, then replace your existing PHP installation with the one you just downloaded. Don’t change the folder name because Windows won’t be able to find the PHP folder if you do.
🌐
Medium
medium.com › @kusuma844 › how-to-switch-your-php-version-in-windows-without-xampp-2776eed3de7
How to Switch your PHP Version in Windows (without XAMPP) | by Jayakusuma | Medium
July 27, 2022 - So, all that’s left is just installing the upgraded version of PHP, or rather i would say, placing the folder.
🌐
TechBloat
techbloat.com › home › how to update php version in windows 11
How to update php version in Windows 11 - TechBloat
March 2, 2025 - Step-by-step guide to updating PHP on Windows 11. ... Updating the PHP version on your Windows 11 machine can seem like a daunting task, especially if you’re not familiar with the process. However, ensuring that you are using the latest version of PHP is crucial for security, performance ...
Find elsewhere
🌐
W3Docs
w3docs.com › php
Upgrading PHP in XAMPP for Windows?
Step 10: Replace php7_module with php_module and update the path to the PHP module to match your new PHP version. For example: LoadModule php_module "C:/xampp/php/php8apache2_4.dll" ...
🌐
UMA Technology
umatechnology.org › home › how to update php version in windows 11
How to update php version in Windows 11 - UMA Technology
March 2, 2025 - Select the latest version of PHP (ensure it’s compatible with your applications). You will typically find versions like PHP 8.x (the latest stable release) or PHP 7.x. Pick either the x86 (32-bit) or x64 (64-bit) version, depending on your system architecture. Most modern Windows 11 systems use x64.
🌐
IBM
ibm.com › support › pages › upgrading-php-windows-based-install
Upgrading PHP for a Windows based install
Is there documentation that provides an example of upgrading PHP for IBM® Rational® Build Forge® on Microsoft® Windows®? This technote provides an illustrated example for upgrading PHP. [{"Product":{"code":"SSB2MV","label":"Rational Build Forge"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"User Interface","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.2;7.0.1","Edition":"Enterprise;Standard;Express","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]
🌐
Joombig
joombig.com › wordpress-trainning › update-php-version-in-xampp
How to Update PHP Version in XAMPP for Windows - Step-by-Step Guide
All you need to do is follow these 4 simple steps. First, you need to click here to download the latest binary version of PHP. Make sure you download the Thread Safe Zip file depending upon your Windows version( x86 for 32-bit and x64 for 64-bit ), as you can see in the image below.
🌐
Bobcares
bobcares.com › blog › upgrade-php-on-windows
Upgrade PHP on Windows - Do it with ease
September 7, 2020 - 4. At the top-right of the Web Platform Installer, you can find a Search Window where you need to type “PHP”. 5. Then select the PHP version that you wish to install and click “Add” and “Install”. Also, ensure that you select the 64-bit or 32-bit, depending on the server environment.
🌐
DEV Community
dev.to › ngobrolinit › how-to-install-php-on-windows-11-14h6
How to Install PHP on Windows 11 - DEV Community
March 18, 2024 - Then in the System Variables section, look for a variable with the name Path, and click edit. Then click the New button, and enter C:\php. Then click OK to save, click OK again, and continue until the window exits. ... To check whether PHP can be used, run the php -v command to check the version of PHP we are using.
🌐
Liquid Web
liquidweb.com › home › how to upgrade php on windows
How to Upgrade PHP on Windows | Liquid Web
February 18, 2025 - Type “PHP” in the Search Window at the top-right of the Web Platform Installer. Select the version of PHP that you wish to install and click “Add” and “Install”. Make sure to select the 64-bit or 32-bit, depending on your server ...
Top answer
1 of 13
4

PHP is a scripting language that commonly has been used to implement a content management systems. It is my recommendation that you move anything that is dependent on PHP to a Linux machine. Microsoft ended their support and involvement of PHP about 5 years ago and at php 8.0. If you want to do like I do, utilize the tools on the system to manage the PHP installations (phpmanager and Windows Platform Installer) you can no longer do that. The infrastructure for both of those are gone (iis.net). Since PHP is an open source project, you can go directly there and get what you want, but you have also now acquired the resposibility for doing it yourself.
On top of that with the age of these servers, you have to also assess the applications that are using PHP. The upgrade from 5.6 to 8.2 isn’t likely to be smooth. Something built for 5.6 is far from being compatible with 8.x You have at least the step from version 5 to 7 and 7 to 8 to consider.

2 of 13
8

I’ve just inherited some customer facing web servers and have been asked by the security team to update PHP on them, as they are “slightly” out of date.

I’ve never had anything to do with PHP before, have no idea what it is, how it works or anything… and I am looking for some straightforward guidelines to updating it while ensuring that our customer sites are not affected in anyway…

Has anyone got any pointers?

They’re 2 x Windows Server 2012 R2 and 1 x 2016. The 2012R2s have PHP version 5.6.31 and the 2016 has version 7, and we use IIS.

🌐
Techwrix
techwrix.com › how-to-install-php-8-4-3-on-windows-11
How to install PHP 8.4.3 on Windows 11?
In the System Properties window, click on the Advanced tab and then on Environment Variables. Find the Path variable in the System variables section and select Edit. Click on New and paste the path to your PHP installation (e.g., C:\Program ...
🌐
Apache Lounge
apachelounge.com › viewtopic.php
Apache :: Upgrade Windows PHP easy way?
October 15, 2020 - We cannot provide a description for this page right now
🌐
PHP.Watch
php.watch › articles › winget-install-php
How to install PHP on Windows using Winget • PHP.Watch
December 26, 2024 - Run winget update PHP.PHP.%version% to update to the latest patch version for that release. For example, to update PHP 8.4 to the latest version, run: ... To remove a PHP version installed using winget, navigate to system Settings > Apps > Installed ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1090662 › php-version-update-from-7-4-to-8
PHP Version update from 7.4 to 8 - Microsoft Q&A
November 15, 2022 - Under Stack Settings, click the drop-down menu under Minor version and select the PHP version you want (we recommend choosing the most recent version).