• 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.1 (8.1.6)

      Download source code [25.22MB]

      Download tests package (phpt) [15.06MB]

      VS16 x64 Non Thread Safe (2022-May-11 09:27:38)

      • Zip [29.23MB]
        sha256: e6f9eb856860a4a5a7cbff9010886b901acdc2ada26fecd09dbaeb7f8cef1e8c
      • Debug Pack [23.75MB]
        sha256: 6a39c30cd3e27ce29399b4060fbefe276a088d5f8a2ce66034fdc0888469a3c0
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 5544ab66c585b7a5a9acea108483c4664af927c878266f9c64d153d2aaafa7b3

      VS16 x64 Thread Safe (2022-May-11 09:29:42)

      • Zip [29.33MB]
        sha256: 59d77114203e8d9f4f5a14744008f26745c3b72afe129b06040fcdec1658a983
      • Debug Pack [23.75MB]
        sha256: 13bd02ab2fb3e185e4aea01cba1e62bf1fe7a570e1409d079aced1c5fb7c79a5
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 199850c148ba62b829742f740319d948bf30e34c3e032474eff2e290329c305f

      VS16 x86 Non Thread Safe (2022-May-11 09:27:34)

      • Zip [26.29MB]
        sha256: 01fd1e8aaba8ca9a22347a4bd3e0651a34591a4d770dfdcc25fafc744c3b282b
      • Debug Pack [24.31MB]
        sha256: e803c2ab2223455632ebda91f0f49b74df8c2c3984bd59c88a31e955b39e3974
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: c19e48b0b2c00cee5bf9b17051be96773fcdb7e6f5176714ac1e98643ae19320

      VS16 x86 Thread Safe (2022-May-11 09:24:04)

      • Zip [26.27MB]
        sha256: 048c37a07056dfb3720e9bb524a7d19c694725aaa45371ef3013f08fa1069c34
      • Debug Pack [23.97MB]
        sha256: eb36753ee12901340b739c2d1820af86ab50b399598df319dd029fee7e8a7dd5
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 9ee5d5235e61a737beca87ff2c4d57b43ab704368c57cc080c59bb4a590158a7

      PHP 8.0 (8.0.19)

      Download source code [23.41MB]

      Download tests package (phpt) [13.5MB]

      VS16 x64 Non Thread Safe (2022-May-10 09:13:46)

      • Zip [25.52MB]
        sha256: 446685e504bd26b6fbb21e1f32b06d0c3d64267a168cca8a9ac985a9ac17d27a
      • Debug Pack [23.19MB]
        sha256: f7deb7a816d689f6c47fb942beed2d8dafaf0acfed71dc79fb120ffd35b3ebb0
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 6eea4c466c27612f34d149b9bfa794b5775874524648570ab897e22179186ca1

      VS16 x64 Thread Safe (2022-May-10 09:16:08)

      • Zip [25.62MB]
        sha256: 933476b26a7e377e0e4a3a709b85b4f3f6419eac8012c58c236c5b2556b9a866
      • Debug Pack [23.2MB]
        sha256: 3c27ca85246031a41014a77623d8ef3a0eb8f8159122b75ac28b58dd16cf2426
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 0b4324f43b77ab2ef5872a1acce75d7452bc5ad465367a29953352a4bbfdc538

      VS16 x86 Non Thread Safe (2022-May-10 09:14:12)

      • Zip [23.64MB]
        sha256: 84b9a4d7d1c6042a664b13771fdddf39cfaa71bec9c3b6e4638d4a71ffd4ebcd
      • Debug Pack [23.86MB]
        sha256: cb3ccaf23e46a9d017dc754aaad47ed7a4b6bc9c952f217ca6e5959cdb37ce12
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 8003ef8d37c69a55a10abb060cd292a986d8ca04b38203c9e25bd26f07de0bb2

      VS16 x86 Thread Safe (2022-May-10 09:13:20)

      • Zip [23.63MB]
        sha256: c02fa3402670d6ec4974062b517d54f595179877ff8ac6b319c1ff8f11ae39a6
      • Debug Pack [23.51MB]
        sha256: 51cd71bba969d8bf75b2900fed08dd65b57a9fc5cc4a5bd690dd01a99ee65781
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: b85917ee7640c47adf64134e5cf942b225ffd4fd6affc4ba906899c0ce4933dd

      PHP 7.4 (7.4.29)

      Download source code [23.73MB]

      Download tests package (phpt) [13.54MB]

      VC15 x64 Non Thread Safe (2022-Apr-14 21:34:21)

      • Zip [24.92MB]
        sha256: fd958c064e1ed18efe76298bb4606ab1abaca8400516f232b3e98ecbb3da6bc5
      • Debug Pack [22MB]
        sha256: cd64e91c9e45edb9d50ee3ba20d22c9894486dfb8f6abc7fffbd23da7726b64c
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: 588956c8dfbcefc013c0d67db912cbc928e127e827f0f0ead6e176ce4413f425

      VC15 x64 Thread Safe (2022-Apr-14 21:35:16)

      • Zip [25.01MB]
        sha256: 7b0833c7dcad8e3fca91788236a93ccbcade4ed6a1fff53e2b74a66c5dd1077d
      • Debug Pack [21.99MB]
        sha256: e6e599b709f08ea1588034eaa8f5351a9d9cf245bc2d3a374463156ebd644303
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: d621243870f3b9b723d792e1ef47b98b6c16081a035e81ec33a84e2a16ee0533

      VC15 x86 Non Thread Safe (2022-Apr-14 21:34:21)

      • Zip [23.2MB]
        sha256: 9c5980bc5b4722997062cd7d571c2e70f5f12d45059e1c10f8784ba1c5175be4
      • Debug Pack [22.95MB]
        sha256: 6c31de8684d656ba4a29285443206d9f1667939e7b73d833fc22320f2bc5d864
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: c1c94b1f054816c7ad852f06f47553cb9f95ccb0db61d4007be965631641ee83

      VC15 x86 Thread Safe (2022-Apr-14 21:35:26)

      • Zip [23.17MB]
        sha256: e218e63c8c5ce2b250894e7d81d745a1cfd8d0483702c7e74785459efb644e26
      • Debug Pack [22.58MB]
        sha256: a7feb61e050d7af822ef483275b39ec29026d3836bd37c999bf8d1a204d581c9
      • Development package (SDK to develop PHP extensions) [1.08MB]
        sha256: eddf345fe7df2a474e1660ba5c31a25434ffcaf13987b02c158c46b01225f98e

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