• PHP: Hypertext Preprocessor

    • Home
    • Downloads
    • QA Releases
    • Snapshots
    • Team
    • PHP.net site
    • PHP For Windows

      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 For Windows

      PECL extensions for Windows is being worked on. Windows DLL can be downloaded right from the PECL website.

      Which version do I choose?


      IIS

      If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.

      Apache

      Please use the Apache builds provided by Apache Lounge. They provide VC15 and VS16 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.

      With Apache, using the apache2handler SAPI, you have to use the Thread Safe (TS) versions of PHP.

      VS16 & VS17

      More recent versions of PHP are built with VS16 or VS17 (Visual Studio 2019 or 2022 compiler respectively) and include improvements in performance and stability.

      - The VS16 and VS17 builds require to have the Visual C++ Redistributable for Visual Studio 2015-2022 x64 or x86 installed

      TS and NTS

      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).

      What is PGO?

      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:

      • PGO on MSDN
      • Visual C++ Team Blog - PGO with PHP
      • PHP PGO build for maximum performance (old)

      amd64 (x86_64) Builds

      PHP 7 provides full 64-bit support. The x64 builds of PHP 7 support native 64-bit integers, LFS, 64-bit memory_limit and much more.

      x64 builds are recommended (almost all Windows installations support x64).

      Long and multibyte path

      PHP 7.1+ supports long and UTF-8 paths. See the manual for details.


      Archives

      Past releases are available from our archives, older versions not found there can be found at the Museum.

    • Binaries and sources Releases



      Past releases

      PHP 8.4

      8.4 has no release.

      PHP 8.3 (8.3.10)

      Download source code [27.13MB]

      Download tests package (phpt) [16.31MB]

      VS16 x64 Non Thread Safe (2024-Jul-30 15:35:46)

      • Zip [30.67MB]
        sha256: d82703970e42cb91bfe8f46f7feb1345e3c7d055bdad1e1a80594096a009fb9c
      • Debug Pack [25.75MB]
        sha256: b3bdca8ba40598698c1b25c31156dc80ef7a5cbc424b77ba8d199001a7039035
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 7647206cf6a8b8ee8a025ab102fe2fe67f3269fea271e6e394fabaefcd0a1d4b

      VS16 x64 Thread Safe (2024-Jul-30 18:09:04)

      • Zip [30.81MB]
        sha256: 92ac126ead07bc1fb14832d83bb9020144399d0f33ea1cc537b1c8c5c8c61a00
      • Debug Pack [25.77MB]
        sha256: 7a7eb4dfc49fef45231335560b7f9e161a4e3401ee4f0f31a258b39e4f2dc085
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 898a1accb1ab4484cc9ef593f6c0c7fef5e29fbded5f2f77b8b333079a532468

      VS16 x86 Non Thread Safe (2024-Jul-30 15:32:46)

      • Zip [27.54MB]
        sha256: fcec89c709fa6ea5825d9eb68bcacf08434f82447bc26b45a174d8ac879d5eb8
      • Debug Pack [25.8MB]
        sha256: 1b65149f08a71805732ae840273c8e12f6476f66940b4902f9baa5a53997226a
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: f3a04b83aa845a084d902dd9aa3c2bac340a2fb110325cda93404830631ed3f7

      VS16 x86 Thread Safe (2024-Jul-30 15:31:50)

      • Zip [27.53MB]
        sha256: cf68ef7127306095588595a6c2b8f2eab1e69db8c85d472abba95bbb6859abe7
      • Debug Pack [25.42MB]
        sha256: 23f5fbaf5307ff38b77923f67cfc19a1daea4cf8d2c339f63ed968a602c2cb81
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: efed52d24f3e89e27d86c4e16c11f1ccf74ef5db8ff106a4a386221ab60d9166

      PHP 8.2 (8.2.22)

      Download source code [26.33MB]

      Download tests package (phpt) [15.74MB]

      VS16 x64 Non Thread Safe (2024-Jul-30 13:36:18)

      • Zip [30.31MB]
        sha256: 99ce9bb034196e8f74b152311df0e5b94b378c7c9e970b015fc55ddd062904fb
      • Debug Pack [25.52MB]
        sha256: c4c37136c3922a1256c4afe3ccd6e987d1c6ce09890b02925c98afce1a7d0b7b
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 01ca3f335109a5b4fda0473d14f50b52379d20962ff5df9547eb36eb6bafae80

      VS16 x64 Thread Safe (2024-Jul-30 13:38:46)

      • Zip [30.42MB]
        sha256: 9cfb9bfc003eeeffa75e9437b3fc0cb77310c334167bd26d636bfd8e9ea28fd0
      • Debug Pack [25.51MB]
        sha256: ab4940cf989c7bca29c6a7239adf4e5136f6f5737f67662b039a91cebcf67770
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 68c0cb0e732c752516e3724864ba418814497d77257d4a4a2606d73f3ed356f1

      VS16 x86 Non Thread Safe (2024-Jul-30 13:33:34)

      • Zip [27.21MB]
        sha256: 89b6b4358ea129be86fcf43a252dc380a7542aa9184f980ce4d2c461f38481ee
      • Debug Pack [25.59MB]
        sha256: f25e4c0ce190c4ec94bbdd216b9b27cedbcf7600f3c9a447ea8cb63de733a8f1
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 59a04b85617fa639d8e9ddb266c5a26b950842ff20fbbdff55a97817b6d12f85

      VS16 x86 Thread Safe (2024-Jul-30 13:34:06)

      • Zip [27.18MB]
        sha256: 2dac0fb73a2863a034e04f343df6a223fbbd72c7c6eaa4279ccd1e4a84b25941
      • Debug Pack [25.22MB]
        sha256: af19477e7bca9d92b606e438821a45382c02edf8a1066e8dc4bcbe51f7633495
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: e78c068048ceba38838eeeafb13f98bf2ad508a43720b512a4703abe7823a550

      PHP 8.1 (8.1.29)

      Download source code [25.68MB]

      Download tests package (phpt) [15.38MB]

      VS16 x64 Non Thread Safe (2024-Jun-05 11:01:32)

      • Zip [29.33MB]
        sha256: cacf6b9dd516741e77dbe8ef89f8cbfefc040e059c60fecdbea5e1e9a7ecbf17
      • Debug Pack [24.87MB]
        sha256: c133eb233c05388c39a0ac6bc469e184b4415c098de6f5b79af5408d57decc7e
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: f20e2e7cecb0ccd59ed4d6bb28903df775deb451c8bd79e71c1e9238743b3844

      VS16 x64 Thread Safe (2024-Jun-05 11:04:04)

      • Zip [29.44MB]
        sha256: 5fe3cea08c732ebf67c7f1b3201b29d4ea76601aebc8a8105433a30ef03ac243
      • Debug Pack [24.83MB]
        sha256: 03d5ca1f2d04e825961c7151e179d78e87c3689bdeb8fa46215c469a68eb301a
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: f95b57eb9e05a2fa40da864151637f7ff8cc5cbc4c507c9c81375444c6634925

      VS16 x86 Non Thread Safe (2024-Jun-05 10:08:54)

      • Zip [26.39MB]
        sha256: e6041cb3e8d3442eee33796a418422a219f8aeebb741259ecc5c73097d0af002
      • Debug Pack [25.02MB]
        sha256: 58bba6966603d0a730a5bd8b3f018ae6f7a6b7d9c32515f0f081140c65bbfa2d
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: a46e94a2c773873fcdde2521ec813cd2725062a2c14801e7b043820af957808e

      VS16 x86 Thread Safe (2024-Jun-05 11:00:38)

      • Zip [26.37MB]
        sha256: 77a3555962012d7bd1f5665caa13ddbeebc8bd69393a48acc250a489248b1678
      • Debug Pack [24.67MB]
        sha256: 476284a30e16bf6d2cc2c9f97e99cccdab7664a1c131649a1dda1bbf1c56f4dd
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 569f98a729d0fd8a532b7a5d6e4844707f4193671a3cabb593f3c16f45577786

  • Copyright © 2001-2024 The PHP Group
    All rights reserved.