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

      The PECL extension release and snapshot build directories are browsable directly.

      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.

      VC15 & VS16

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

      - The VC15 and VS16 builds require to have the Visual C++ Redistributable for Visual Studio 2015-2019 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.2

      8.2 has no release.

      PHP 8.1 (8.1.7)

      Download source code [25.25MB]

      Download tests package (phpt) [15.08MB]

      VS16 x64 Non Thread Safe (2022-Jun-07 22:23:58)

      • Zip [29.24MB]
        sha256: dbd820a5049e364c828bb84af844852e7399ab11cc10dacc9849da1213a555bb
      • Debug Pack [23.82MB]
        sha256: edfa5d29c731f640c03b647393d10d253d549c69b873a0d6e577ae8d6f64b91d
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 329c0febca4752bd1f1cf40bb6457fe3c49c5b9fdfca1c387d5bb2b2038a4bfd

      VS16 x64 Thread Safe (2022-Jun-07 22:31:20)

      • Zip [29.34MB]
        sha256: e7e8a7f57edbb713084f8d0cf7b53b8edfa4aa126fc8d9c257c4829ed60ae797
      • Debug Pack [23.83MB]
        sha256: c9a41c824f16b506725b389570a21ed55a593d202418a73ab1057bf6a4f5bed1
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 60fc590cf9049248ef9abafed6fc37c61bc42bc3da747dd7d8072af5e126394a

      VS16 x86 Non Thread Safe (2022-Jun-07 22:26:30)

      • Zip [26.3MB]
        sha256: a98639cffdb627aaee300d37a4823d2cbde92b3aad25285683a156ccf9965def
      • Debug Pack [24.39MB]
        sha256: de42e7f032de338c2ae034694c35db69677eea3e7f2ca9e6f02c20d73517a4a0
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: d98c81b08746de50a7af3899193d9cf55d578d3e64c9fe7379e1592a7bf4f54b

      VS16 x86 Thread Safe (2022-Jun-07 22:21:12)

      • Zip [26.28MB]
        sha256: 7a9d75079f1c0b5d5247312d844dfed02486934c732505e3c63a29da359d95a4
      • Debug Pack [24.04MB]
        sha256: e4ce8fe8945320575a2c5a7c4b8d64afed33e7c323c84a82caaad630ae4057b7
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: df8b939975b67aadd37587132c006231af9ba0196229531d044a1198fe347f62

      PHP 8.0 (8.0.20)

      Download source code [23.42MB]

      Download tests package (phpt) [13.51MB]

      VS16 x64 Non Thread Safe (2022-Jun-08 09:43:00)

      • Zip [25.52MB]
        sha256: 3202b88ce772ad2ec1f23b738ac724aeeb474999a6bb6bf07724d19f1a9ef2ea
      • Debug Pack [23.19MB]
        sha256: 1d84b96fb43a25068de2e4f1caf18772f523a3cf5ac17bba52cd330cebb49382
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 1a91914713687e27b58eb262a62ce62ab10869fe07ffea08fd5c3704bba0b914

      VS16 x64 Thread Safe (2022-Jun-08 09:50:40)

      • Zip [25.62MB]
        sha256: b9561f96b33541a72ac3eca66cf81dd67e212494733cf98044bc84b3e9d46ab1
      • Debug Pack [23.2MB]
        sha256: fde225ba2a6e28205ac146d6caba48625cb2274246a158fefd4480d5608f811a
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 99800ea1d75cc4b6c77f63fd66cd6379098b36fb1afc6b03cfff8af646620d31

      VS16 x86 Non Thread Safe (2022-Jun-08 09:43:54)

      • Zip [23.64MB]
        sha256: 04d9efb61eed0ebc2100c67b3011b8083ad8aa86eadca1c7a79850bbe815ce44
      • Debug Pack [23.85MB]
        sha256: ac6f14b6a475656583cc31ed21be7c4d5ea99e9567104cd56ef749d12a4930eb
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 0f1314293d03c94bda83f25de091aece0de0e4d1025285bd9f66d4c5c06d4389

      VS16 x86 Thread Safe (2022-Jun-08 09:31:42)

      • Zip [23.63MB]
        sha256: b5fa9ef3290fb2a048a426850388fbc27313421d51ae67108a5efd9bd68cb7a8
      • Debug Pack [23.52MB]
        sha256: 9bd9812eaa774bc60fb673b17767144a70f12466cb21b280d3b63123f8473785
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: be73d09d2514831a51ba478799234b580ad2739743fcf8457149d411640f386c

      PHP 7.4 (7.4.30)

      Download source code [22.85MB]

      Download tests package (phpt) [13.54MB]

      VC15 x64 Non Thread Safe (2022-Jun-07 22:15:51)

      • Zip [24.92MB]
        sha256: 006eb876d53be539224119337f43ba78965adf72fe0af61fa421e8fb526869a2
      • Debug Pack [22MB]
        sha256: 5272151da7aa1ed29e0792b641cbe1bd2ec458d647bf352665ec484242fc5484
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: baef1bfb1479df6ebb51f69bb57dfd07b7bf8de2ee664943eb816a9bdb983162

      VC15 x64 Thread Safe (2022-Jun-07 22:15:56)

      • Zip [25.02MB]
        sha256: ddf28e6be9e61a008c347139c70bd6aa9c80e4771eb7fdd46b80e6c394c1d8dd
      • Debug Pack [22MB]
        sha256: ba23bd0ee5814395f25237e6e420b918d2dc135f5514967f079d446e4f956cfc
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: afea1ee5879476c5ad9022ecec41be0428a69e58357e0241e39911dca593e177

      VC15 x86 Non Thread Safe (2022-Jun-07 22:15:38)

      • Zip [23.19MB]
        sha256: 3e2fb7af829f3548c1b272690f03f6ea04f92056a78e7872c1969d816a2f2278
      • Debug Pack [22.92MB]
        sha256: bf3a6836576f5c7c9f3f623c85e12d8379fef383d9fca1f69eb78fa3f01515f7
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: 66aa4e448c3ce00aa3b86431a4e4bc5761a264e5d5cf2a3c5acae7d244493a1d

      VC15 x86 Thread Safe (2022-Jun-07 22:16:00)

      • Zip [23.16MB]
        sha256: c3de1f806d02353d9d70bfe62f3ae18be84c4d02f98f26c393db453abe91b88f
      • Debug Pack [22.57MB]
        sha256: c1f31f8e1c4de22bdecfdaad9c31b6bf70701b61ddb71fca7fe7ad82373ffbd8
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: b50fd010fafd54db7fb799567cf8a176ed3e8d6010a734be20bf27501f15376d

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