• 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 HTTP Server builds provided by Apache Lounge. They provide VC16 and VS17 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.5

      8.5 has no release.

      PHP 8.4 (8.4.11)

      Download source code [29.4MB]

      Download tests package (phpt) [17.36MB]

      VS17 x64 Non Thread Safe (2025-Jul-29 18:08:04)

      • Zip [32.24MB]
        sha256: 10f82266924095226f36f6782f7c0f33b3492cc29e4a43f80ab46fc53cef7793
      • Debug Pack [36.93MB]
        sha256: 285eae491291513fb3be7ce8bc76ef44bcf5cba876e4cabb24b4d4b87c055fc2
      • Development package (SDK to develop PHP extensions) [1.35MB]
        sha256: 80624c6bb7f7bc35efc07fbb97dd955c9fd1ef8002cf4d9e8730a99270ba9b8e

      VS17 x64 Thread Safe (2025-Jul-29 18:07:22)

      • Zip [32.39MB]
        sha256: 1d037fb48dd44c2e434954a0408cc8e0078558bec37dcd98bf85e334e28d57bc
      • Debug Pack [37.19MB]
        sha256: df0e5754003cdd6190d65e7c37aad614402541759cca7c0de6beec0fdc29c6ac
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: d0ac007b5d6896b15319e6f66aaad14a2870fc4eec3fe46696c2e9fa424ae638

      VS17 x86 Non Thread Safe (2025-Jul-29 18:06:48)

      • Zip [28.91MB]
        sha256: 9285a948095714158b13bdf77020e3a58d8c09ea652a86564efc58fb2112ed44
      • Debug Pack [37.26MB]
        sha256: f0b6762c110235bc4987925aa9f2c1a35d7066a03f5a71631bc467fb81ca8357
      • Development package (SDK to develop PHP extensions) [1.35MB]
        sha256: 099f45dc839b969d89a0ed53160c9b2185a6597ad4550a2a6cae3c4fc817b422

      VS17 x86 Thread Safe (2025-Jul-29 18:04:24)

      • Zip [28.98MB]
        sha256: 812ae24452e8b94cdb912016d5173b9f8b397d9c70b7bbf2533664515674c3a1
      • Debug Pack [37.38MB]
        sha256: 2bbd6c508a0a9c75bb11f222f300a0c44a27a9c8a125a60b347b8ab446fcf2f6
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: f769784160520c38f08e58fd24983ad21feb0af728f112169b9e01ca5341dc8d

      PHP 8.3 (8.3.24)

      Download source code [27.44MB]

      Download tests package (phpt) [16.63MB]

      VS16 x64 Non Thread Safe (2025-Jul-29 19:09:11)

      • Zip [30.71MB]
        sha256: 2c758caac166b4756fedfb95bc4d2e351420f88cc8fe70061d6959a1ce75012e
      • Debug Pack [30.26MB]
        sha256: 93d219971a6a09a66229ce789e97f10f5b68d3555349fdb5eae8c2d28d60e746
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: a712c56e03605d3e1447fdbc03addfa435f1c0b884c94a7ca9d1094bc539a113

      VS16 x64 Thread Safe (2025-Jul-29 16:52:42)

      • Zip [30.86MB]
        sha256: 922882c73ffa5d08192769b8030477ba63fca3e35bf78e9c8f22aef19cbe66e3
      • Debug Pack [30.19MB]
        sha256: 4a7029a89ef99771017fdaa8079283c3d5fb9ee4fbe75a9db617d28bd8e8a167
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: fb5bf1dc014c941415d8640bceedc9996d1cd4c22712ba1a4cf0e784af7f1537

      VS16 x86 Non Thread Safe (2025-Jul-29 16:53:06)

      • Zip [27.58MB]
        sha256: 2509e7abb70931c51fe8014d5d52ff983c5d63c4fcd143987446baa80cbc2db2
      • Debug Pack [30.29MB]
        sha256: 4f21af056b2cf337f8910ffdff35cdb78452a184263f8cc2ada25e3b9daa3245
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 0d16b1a5ab17fcbc2dfbdacded6aef1790199d495ffa5ad5dd5ee1f63d0b334d

      VS16 x86 Thread Safe (2025-Jul-29 16:52:14)

      • Zip [27.56MB]
        sha256: b9e9227b4aa6719978d51aa4cc861711274fb646c8c21d1249ed06cd1f9e41e9
      • Debug Pack [29.93MB]
        sha256: 2152c10be736f006ad6983edbab4931df20abf5f1fb6191c765e827e2d18a2c5
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 234c202b8f2bd6f5e9344cdf3b13dd317c403aef8dd2853823b9a64ef9acf2e5

      PHP 8.2 (8.2.29)

      Download source code [26.52MB]

      Download tests package (phpt) [15.89MB]

      VS16 x64 Non Thread Safe (2025-Jul-01 20:37:54)

      • Zip [30.34MB]
        sha256: 8404a12bd421075060ae9f7ae988777a476807163d9d4c10e1ac55175976f5c0
      • Debug Pack [25.52MB]
        sha256: cf8a0e8d0298a70becc467579c984c7088eaf2eac6ac2c2750070402a06391e1
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: d91b0e40f19c32d48a3d227abf397011ce1ee3b4a3a8d5cccb68c4621547ba92

      VS16 x64 Thread Safe (2025-Jul-01 20:41:32)

      • Zip [30.45MB]
        sha256: 3251789a0557eaae3cf25e7b10eccd2fb0480e1cc0ccc2666894c74de45eea76
      • Debug Pack [25.47MB]
        sha256: 7aa990fb89d2ba014162e73d6612393b3d5748fa603bbb8eef60b3d530bb8e08
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 1be48e56118914994e14dc826b49ae2a69a9ac24623a5e3a142855893e95708e

      VS16 x86 Non Thread Safe (2025-Jul-01 20:38:52)

      • Zip [27.24MB]
        sha256: bf88cf1e7303639db234766e9eeae19d6f0760da127d4ccfd88d4a1a412a8f69
      • Debug Pack [25.7MB]
        sha256: 7c9ed619ae6e43c9e5cbe0569316ccaae6ec0ab0c158fe3f9ddd6911b9e58f8b
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: cef1b2cca7e5f6194e8bedeb1d4778b9eed5eeda24aacba086cdf5f94817bbcf

      VS16 x86 Thread Safe (2025-Jul-01 20:38:26)

      • Zip [27.21MB]
        sha256: 334244d028ef1b2634a5689d3a57add301afefe70ec7391b80452f8542d7a886
      • Debug Pack [25.31MB]
        sha256: 8d3daf6061461fd64392ac6ffe4c01d9b084659897f99c5a101a809fd787b659
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 606c7bd7b7661fe907311725145eeafd70168128fd05e60f0c87779a10c301c4

      PHP 8.1 (8.1.33)

      Download source code [25.74MB]

      Download tests package (phpt) [15.43MB]

      VS16 x64 Non Thread Safe (2025-Jul-02 09:09:18)

      • Zip [29.35MB]
        sha256: c34703ced40248d68bef4167015d5f2cce35c43850304beb070556f9705fb746
      • Debug Pack [24.97MB]
        sha256: b07152fe913c780e54001304c355f7d13e8fcc5edbdd33cb2af6d910a043c504
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 44e245c03f1ee1251220891648b409eb0b851194cf47b363b002ab9cd2926d8e

      VS16 x64 Thread Safe (2025-Jul-02 09:11:40)

      • Zip [29.45MB]
        sha256: 3888d81bf6f6a06ff2b9df5114b2ca40075d2631dc3e23584b503c40d44d8ed0
      • Debug Pack [24.96MB]
        sha256: 7a43919fce010b46534d1ca1d8e8e8e2b6e5f5b27c75bf2953371493d528154a
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 3b57e891f858bfd57c9184dc3ae6f5d96be94ee7d23b33aaa787da4a50268407

      VS16 x86 Non Thread Safe (2025-Jul-02 09:10:00)

      • Zip [26.4MB]
        sha256: d05705d8db10b293c4e92630a327f108555e880d0ba2fbf7d1796b0e144b1ca5
      • Debug Pack [24.99MB]
        sha256: 5476d9d3afe03008ea5c4008cfce5826b74257f69fc755541fdf45255808be2f
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 80d55f2891b1ad4af1fcefabba5d80eb42cbb25218b31cc3c072302f14fe75bf

      VS16 x86 Thread Safe (2025-Jul-02 09:06:48)

      • Zip [26.38MB]
        sha256: 142c9515ede8d4015758eaf00e9b3f16f578aff0f9bcdb3459c537ea1b5d47eb
      • Debug Pack [24.6MB]
        sha256: be0963317e3e5c08e2289070a077fe166da19433db593a782216da76793c0060
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: a921382def72689140cba60630e8cd4736222ad675d7456d0d5dcc916afc0d31

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