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


      QA binaries are NOT intended for production use; please use the binaries at PHP Windows downloads.

      Archives

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

    • Binaries and sources QA Releases

      PHP 8.4 (8.4.7RC2)

      Download source code [29.45MB]

      Download tests package (phpt) [17.34MB]

      VS17 x64 Non Thread Safe (2025-May-01 11:12:14)

      • Zip [32.22MB]
        sha256: cbe22a3322809ce6d7169dbfae4594ffffa303e0a5dde128f358c4c4c410b9af
      • Debug Pack [37.11MB]
        sha256: 5c4e62548d69b7176f69bcd888f4225003d60f0e07ca8312dd71f41d5d42e1ed
      • Development package (SDK to develop PHP extensions) [1.35MB]
        sha256: c49dd66a12cc8db601115f90b1e7e40ee4e8710bf02ea191b4a8caf97717d83b

      VS17 x64 Thread Safe (2025-May-01 11:11:04)

      • Zip [32.37MB]
        sha256: d2093ba5257ac6d87bc043499c02a00ec71e1cbbfd3532172863f35ebb703d77
      • Debug Pack [37.08MB]
        sha256: bcf131532c98d2b41479c2b72766c2fdea95d5efcaf7c315df026be512dde0e6
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: 301ee0c6b001e55870bf3bf8bd35594c0bec12ef8a6c0a9c4a42a3e27cedc817

      VS17 x86 Non Thread Safe (2025-May-01 11:10:52)

      • Zip [28.9MB]
        sha256: b91fb70754c81b85e613adf0a5cbdfda9eaf141908d5794bffe30b86c9ae3bf0
      • Debug Pack [37.23MB]
        sha256: 725051f4af8ab202794c0cc9e87b617644bb826fb5fa7f5e7054e5d0df971184
      • Development package (SDK to develop PHP extensions) [1.35MB]
        sha256: d46b0b70b603719c616162dad93ffe358d1836e211049d6507bcb77ba8ba08ea

      VS17 x86 Thread Safe (2025-May-01 11:10:04)

      • Zip [28.96MB]
        sha256: a511d1fa8dfb5ef2eb3f91c6fb223520b946f36b31c06ac67d3978dd1c8e8194
      • Debug Pack [37.36MB]
        sha256: 2a5299dc7804276a5adcc948e6d0e1aaa5da1e00f1ae3d0cbc7b11ffdca74787
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: f7923239a148bf131136d291e8383c3a7389a7fec4378b329cd3291e06ab4641

      PHP 8.3 (8.3.21RC1)

      Download source code [27.55MB]

      Download tests package (phpt) [16.6MB]

      VS16 x64 Non Thread Safe (2025-Apr-22 14:15:36)

      • Zip [30.7MB]
        sha256: f0f08095e714a56769ce1648d8fe63c57b98e7bf862f13e61d5748233345978b
      • Debug Pack [30.24MB]
        sha256: aaf3039575c03ebd7cf71198cb723a01cb3fb1d7967d5cdae47e0df87439c767
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: cea4ca8670d2dc84b72767ed23aa9bb67b36a1d259da81b6f1594859a24d5d83

      VS16 x64 Thread Safe (2025-Apr-22 14:14:24)

      • Zip [30.84MB]
        sha256: c5c701e5eeebc90c1299766418cf6f982524e2a5164729548abdaf37084d3490
      • Debug Pack [30.32MB]
        sha256: 350f7b298170e187acf6220853ca9d53498a8b44c244cb5865986bcdaa7b9424
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 7fa8c74ab8da816dfc199526cf067031ec70719ad926cdcb67a0245593a9708b

      VS16 x86 Non Thread Safe (2025-Apr-22 14:12:38)

      • Zip [27.57MB]
        sha256: d0c45ccdb298ec0c4969090af3d766bdd72b9df34e574fa401a4608f55888bbf
      • Debug Pack [30.22MB]
        sha256: 6171f6af9f3217adaa2076f2c359d6bb71b7028f679366102d2d1d84f0f986c0
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: cfc861e8bdd83393164cd9239147d953eec40e077eec3f10a6b1d22eadaad88b

      VS16 x86 Thread Safe (2025-Apr-22 14:12:06)

      • Zip [27.55MB]
        sha256: 55d286da986155e94f27dd8afbac08852c2f30f9fec5e86562c0f34c9b9be152
      • Debug Pack [29.87MB]
        sha256: bbbc1ec4eef100f64d468f78d946812236210c52680e0f4e112c55def7599f08
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: fa9c6502a0bbeec6640925adc0c8af24517c0b3ac1c0ae47adcd9c9bd8645b8c

      PHP 8.2 (8.2.27RC1)

      Download source code [26.63MB]

      Download tests package (phpt) [15.87MB]

      VS16 x64 Non Thread Safe (2024-Dec-03 14:54:38)

      • Zip [30.33MB]
        sha256: 498589d653622d44b0a2b9712f30f1a55e4d2d9c232c31c4ea583aef00a40b12
      • Debug Pack [25.48MB]
        sha256: ad51d621412a626a7541670aa502f829819d3c49fe2339e5f53442af7a2fd916
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 034e11bf8b0d952408425e1dfc2575904ecf1536748b2dbcb7a262864a853c57

      VS16 x64 Thread Safe (2024-Dec-03 14:58:44)

      • Zip [30.44MB]
        sha256: 367f504e79228bfc8f2bf8d98a2d3fb6739fb59d763090ffa87262ca5e7842fe
      • Debug Pack [25.48MB]
        sha256: 7cca309bd7788ccb30ab486f87b611b135ff9222d9b28fc3b857527ba89dd9cc
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: fa495f40b96ab7bcb7c5241a98e1def12fd21fd840a5962a6cc982ab02081978

      VS16 x86 Non Thread Safe (2024-Dec-03 14:54:04)

      • Zip [27.22MB]
        sha256: ac440d1a7a57965569287c27a86c4dae8af7d079cd0a3456916ade6fd01fc164
      • Debug Pack [25.61MB]
        sha256: 89a26fc91cf50677cf1aa858b09a02e5e50eb24dd5ac7eb9d78d24fcec78ce99
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: eb34b00361b4a0e5958dd95729713144a5bf5ae4bd7a5320c4e5dddcde4fad74

      VS16 x86 Thread Safe (2024-Dec-03 14:52:16)

      • Zip [27.2MB]
        sha256: e62e6ceca04479309e76e9ee85bc5bcd8009c30b5b29b8de87a92837e384e5d4
      • Debug Pack [25.22MB]
        sha256: e7b90d5d93ecd221158a21ce895acdb8e3818d5e3d55a5324796110f9e615246
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 705a9ee10b6e209c32f23d717e36d5015497a35c7cace98a4642c0642ac25e3d

      PHP 8.1 (8.1.27RC1)

      Download source code [25.79MB]

      Download tests package (phpt) [15.37MB]

      VS16 x64 Non Thread Safe (2023-Dec-05 17:04:14)

      • Zip [29.33MB]
        sha256: 6daabc1841dc844218944fedbf90ff034ccbee0b0cbf0761ed406c78dd6e594a
      • Debug Pack [24.89MB]
        sha256: 3dcb53e30bb82761fded6faf199f83386349e768a12a6fac75715c492e70ee86
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 4e5a3fec296c62a7dcc482a433c1a8c9dd64bb0b5c6b0723ba46767812df51c6

      VS16 x64 Thread Safe (2023-Dec-05 17:06:18)

      • Zip [29.43MB]
        sha256: dbcc378927f56e5b2cb319523aaa5a249e3468c0326f4b32f2c5033837129aed
      • Debug Pack [24.91MB]
        sha256: 9652f2e618f7213d87062d920b45ff83e285919763bb78d3538010194d13cb9f
      • Development package (SDK to develop PHP extensions) [1.22MB]
        sha256: 543b943833dda271da428b751b122af4fce500f014cda67e7ff4e8003ab1276c

      VS16 x86 Non Thread Safe (2023-Dec-05 17:02:02)

      • Zip [26.38MB]
        sha256: caa1e3f546f1811c840551d95d5d4d8af9d2e1d96ec3ac3aa0d5bf809c17e22e
      • Debug Pack [24.95MB]
        sha256: 3812df67cb10511effde9f39509ff52cc10b24aa8fb1baf3f11fdca0a9836b85
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: eaf2c0f79a7c41c3192ef792a14a9cb1c3b00eeda0f736b49e9a0240d2ccdbad

      VS16 x86 Thread Safe (2023-Dec-05 17:01:00)

      • Zip [26.36MB]
        sha256: 32c303f4572671cc1a92881b69e4144ca479af7bacb2e18412e49650030e05c7
      • Debug Pack [24.61MB]
        sha256: 6980a0ac1f9a34b64fa0919360b7f392f69b324b131fdd297b90d4cafeb23101
      • Development package (SDK to develop PHP extensions) [1.22MB]
        sha256: f32cf2ad455e57d2cb60b9cbcb8555f6f902bff50ffd0fa313a679f5716ef0de

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