This site is dedicated to supporting PHP on Microsoft Windows. It also supports ports of PHP extensions or features as well as providing special builds for the various Windows architectures.
If you like to build your own PHP binaries, instructions can be found on the Wiki.
PECL extensions for Windows is being worked on.
Windows DLL can be downloaded right from the PECL website.
The PECL extension
release and
snapshot build directories are browsable
directly.
If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.
Please use the Apache builds provided by Apache Lounge. They provide VC9, VC11 and VC14 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
If you are using PHP as module with Apache builds from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.
With Apache you have to use the Thread Safe (TS) versions of PHP.
More recent versions of PHP are built with VC9, VC11 or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability.
- The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed
- The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed
- The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed
TS refers to multithread capable builds. NTS refers to single thread only builds. Use case for TS binaries involves interaction with a multithreaded SAPI and PHP loaded as a module into a web server. For NTS binaries the widespread use case is interaction with a web server through the FastCGI protocol, utilizing no multithreading (but also for example CLI).
Profile Guided Optimization is an optimization feature available in Microsoft's Visual C++ compiler that allows you to optimize an output file based on profiling data collected during test runs of the application or module.
Links:
The x64 builds of PHP 5 for Windows are experimental, and do not provide 64-bit integer or large file support.
PHP 7 provides full 64-bit support. The x64 builds of PHP 7 support native 64-bit integers, LFS, memory_limit and much more.
20-Mar-2015
The OpenSSL Security Advisory [19 Mar 2015] announces the availability of the OpenSSL 0.9.8zf and 1.0.1m which fix twelve security vulnerabilities. The latest PHP releases 5.4.39, 5.5.23 and 5.6.7 already contain the updated OpenSSL library. All PHP users are strongly encouraged to upgrade to the corresponding patch versions.
Alternatively, the updated OpenSSL dependency DLLs can be downloaded separately as replacement for the older PHP and Apache versions.
10-Apr-2014
The OpenSSL Security Advisory [07 Apr 2014] announces the availability of the OpenSSL 1.0.1g which fixes CVE-2014-0160. In this regard the latest PHP release 5.5.11 was rebuilt with the OpenSSL 1.0.1g. All PHP users are strongly encouraged to upgrade to PHP 5.5.11. If you already have downloaded this version before 10-Apr-2014, please redownload. The existing private keys should be regenerated as soon as possible.
Alternatively, the updated OpenSSL dependency DLLs can be downloaded separately as replacement for the older PHP versions. Though be aware that this issue affects only OpenSSL 1.0.x and the DLL packages are only applicable to PHP 5.5 and upper.
PHP 5.4 and lower is not affected by this issue.20-Jun-2013
The PHP development team is proud to announce the immediate availability of PHP 5.5.0. This release includes a large number of new features and bug fixes.
The key features of PHP 5.5.0 include:
Changes that affect compatibility:
For users upgrading from PHP 5.4, a migration guide is available detailing the changes between 5.4 and 5.5.0.
For a full list of changes in PHP 5.5.0, see the ChangeLog.
1-Mar-2012
The PHP development team is proud to announce the immediate availability of PHP 5.4.0. This release is a major leap forward in the 5.x series, which includes a large number of new features and bug fixes.
The key features of PHP 5.4.0 include:
Changes that affect compatibility:
Extensions moved to PECL:
PHP 5.4 series will be the last versions to support Windows XP and Windows 2003. We will not provide binary packages for these Windows versions anymore after PHP 5.4.
For users upgrading from PHP 5.3 there is a migration guide available here, detailing the changes between those releases and PHP 5.4.0.
For a full list of changes in PHP 5.4.0, see the ChangeLog.
[17-Mar-2011]
The PHP development team would like to announce the immediate availability of PHP 5.3.6. This release focuses on improving the stability of the PHP 5.3.x branch with over 60 bug fixes, some of which are security related.
Security Enhancements and Fixes in PHP 5.3.6:
Key enhancements in PHP 5.3.6 include:
Windows users: please mind that we do no longer provide builds created with Visual Studio C++ 6. It is impossible to maintain a high quality and safe build of PHP for Windows using this unmaintained compiler.
For Apache SAPIs (php5_apache2_2.dll), be sure that you use a Visual Studio C++ 9 version of Apache. We recommend the Apache builds as provided by ApacheLounge. For any other SAPI (CLI, FastCGI via mod_fcgi, FastCGI with IIS or other FastCGI capable server), everything works as before. Third party extension providers must rebuild their extensions to make them compatible and loadable with the Visual Studio C++9 builds that we now provide.
All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.6.
For a full list of changes in PHP 5.3.6, see the ChangeLog. For source and binaries downloads please visit our downloads page.
04-Mar-2010
The PHP development team is proud to announce the immediate release of PHP 5.3.2. This is a maintenance release in the 5.3 series, which includes a large number of bug fixes.
Security Enhancements and Fixes in PHP 5.3.2:
Key Bug Fixes in PHP 5.3.2 include:
The SNMP extension is now available in VC9 versions. The cURL and MPIR libraries have been updated.
For users upgrading from PHP 5.2 there is a migration guide available here, detailing the changes between those releases and PHP 5.3.
Further information and downloads:
For a full list of changes in PHP 5.3.2, see the ChangeLog. For source downloads please visit our downloads page, Windows binaries can be found on windows.php.net/download/.
25-Feb-2010
The PHP development team would like to announce the immediate availability of PHP 5.2.13. This release focuses on improving the stability of the PHP 5.2.x branch with over 40 bug fixes, some of which are security related. All users of PHP 5.2 are encouraged to upgrade to this release.
Security Enhancements and Fixes in PHP 5.2.13:
Further details about the PHP 5.2.13 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.
The libcURL library has been updated to 7.20.0, which fixes important bugs fixes as well as a security flaw, see the advisory here and the full changelog here.
19-Nov-2009
The PHP development team would like to announce the immediate availability of PHP 5.3.1. This release focuses on improving the stability of the PHP 5.3.x branch with over 100 bug fixes, some of which are security related. All users of PHP are encouraged to upgrade to this release.
Security Enhancements and Fixes in PHP 5.3.1:
Further details about the PHP 5.3.1 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.
The OpenSSL library has been updated to 0.9.8l, which fixes important bugs fixes (see the OpenSSL website for details.
17-Sept-2009
The PHP development team would like to announce the immediate availability of PHP 5.2.11. This release focuses on improving the stability of the PHP 5.2.x branch with over 75 bug fixes, some of which are security related. All users of PHP 5.2 are encouraged to upgrade to this release.
Security Enhancements and Fixes in PHP 5.2.11:
Key enhancements in PHP 5.2.11 include:
On windows, the cURL library has been updated to its latest version (7.19.6) to fix the flaws described here.
Further details about the PHP 5.2.11 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.
30-Jun-2009
The PHP development team is proud to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.
Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, ext/intl and ext/fileinfo), over 140 bug fixes and much more.
For users upgrading from PHP 5.2 there is a migration guide available here, detailing the changes between those releases and PHP 5.3.0.
Further details about the PHP 5.3.0 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.
18-Jun-2009
The PHP development team would like to announce the immediate availability of PHP 5.2.10. This release focuses on improving the stability of the PHP 5.2.x branch with over 100 bug fixes, one of which is security related. All users of PHP are encouraged to upgrade to this release.
Security Enhancements and Fixes in PHP 5.2.10:
Further details about the PHP 5.2.10 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.
07-Apr-2009
The PHP Development Team would like to announce the availability of a new Windows build for PHP - PHP 5.2.9-2
This release focuses on fixing security flaws in the included OpenSSL library (CVE-2009-0590, CVE-2009-0591 and CVE-2009-0789). The security advisory is available here.
The OpenSSL library has been updated to 0.9.8k, which includes fixes for these flaws.
Note: Only the Windows binaries are affected. There are no changes to the PHP sources, therefore no source releases are necessary.
Binaries are available in our downloads page
10-Mar-2009
The PHP Development Team would like to announce the availability of a new Windows build of PHP - PHP 5.2.9-1
This release focuses on fixing a security flaw introduced by the cURL library (CVE-2009-0037). Please see the following for a full description: http://curl.haxx.se/docs/adv_20090303.html
Please note that the cURL related function is disabled when open_basedir or safe_mode enabled.
Note: Only the Windows packages are affected.
Binaries are available in our downloads page
26-Feb-2009
PHP 5.2.9 is now available. Get it here.
The OpenSSL library has been updated to its latest version, 0.9.8j
This release has been the occasion to greatly improve the installer, it should now work smoothly on every supported platform.
For the full list of changes, see the announcement .
23-Oct-2008
The NTS builds and the installers are now available for all php branches and builds.
08-Oct-2008
The snapshots are back online, with more choices and quality builds. The new Visual c++ 2008 builds are now available for PHP 5.3 and 6.0!
x64 experimental snapshots should be available in the next days
01-Sep-2008
The PHP Windows Development team would like
to announce this new website. Here you will
find information specifically related to
Windows, such as downloads, snapshots and
documentation.
Only the downloads are available for now.