• 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 VC11, VC14 and VC15 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.

      If you are using PHP as module with Apache builds from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC11+ versions of PHP with the apache.org binaries.

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

      VC11, VC14 & VC15

      More recent versions of PHP are built with VC11, VC14 or VC15 (Visual Studio 2012, 2015 or 2017 compiler respectively) and include improvements in performance and stability.

      - The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

      - The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

      - The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 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

      The x64 builds of PHP 5 for Windows are experimental, and do not provide 64-bit integer or large file support.

      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.

      Long and mulibyte 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

      PHP 7.2 (7.2.4)

      Download source code [25.75MB]

      VC15 x64 Non Thread Safe (2018-Mar-28 20:47:23)

      • Zip [24.5MB]
        sha256: c5b4f404179de9c87705b76f5d7e8f48243e71510692692fe82f6ea204f44db1
      • Debug Pack [22.55MB]
        sha256: 019ac99013f3d94b634a39bf45f8c95194353d0c6a64c9cd0949dbb549a91df1

      VC15 x64 Thread Safe (2018-Mar-28 20:47:30)

      • Zip [24.64MB]
        sha256: e2a89eb6f8316927d477678d3c5fbe37e67dc23eda405633e5047f5317f44e2c
      • Debug Pack [22.68MB]
        sha256: 080921a26a4439abad30708653177851471ebcc758eab895fae95a78914563bb

      VC15 x86 Non Thread Safe (2018-Mar-28 20:47:22)

      • Zip [22.82MB]
        sha256: 95d85e94f313bd74fbee6fe2bcd71af5b1cad8cfc0b4c863b177901cc257c400
      • Debug Pack [23.26MB]
        sha256: 8851dffe7f03276f065e0e6e2a1af82787f24e25d289e64ec9ae58ecbfcff2f2

      VC15 x86 Thread Safe (2018-Mar-28 20:47:44)

      • Zip [22.89MB]
        sha256: 8b483419ed00ec74543cfa76a710251810a77496fbf80adb7f9480c347a05cb9
      • Debug Pack [23.37MB]
        sha256: 928f7455822a5f3e500118213695cd21a5b3ff5339c0fc1d45f2316d1def5ec6

      PHP 7.1 (7.1.16)

      Download source code [25.54MB]

      VC14 x64 Non Thread Safe (2018-Mar-29 06:18:13)

      • Zip [23.14MB]
        sha256: 41f5b7adc48091ad22f2ffcaa43e29bca3ba6f25cef562d8f10f9cc0307cc4c3
      • Debug Pack [22.02MB]
        sha256: 0496c5d0d07915bbcb8d22f097b640c994d6f17b234d51d49c3db7339ab4ee55

      VC14 x64 Thread Safe (2018-Mar-29 06:18:29)

      • Zip [23.28MB]
        sha256: 93ec8c9f2b08e904ede68a7488a40be4018b41d7144f765364ade1c3161a354b
      • Debug Pack [22.13MB]
        sha256: 204a61b7aaa6c86f15262550b49ff8691dfdd0dd1911e39df4e4ee47da2c5f8d

      VC14 x86 Non Thread Safe (2018-Mar-29 06:18:12)

      • Zip [21.38MB]
        sha256: 074cacab02114c138b6b4ba20e94568a9950c55ae1e6324bef72dde4e2fe474d
      • Debug Pack [22.37MB]
        sha256: a6d0a6b208179cf143c33cedcf42f67fa6e41f6f7d3afaa04c41eb39a0cabaab

      VC14 x86 Thread Safe (2018-Mar-29 06:18:44)

      • Zip [21.46MB]
        sha256: 1d17e247cdbc9d02d15979619ed579f5131fd6c40b937859925e35e61c9d0d6a
      • Debug Pack [22.52MB]
        sha256: 0c956bf18156315a6e9f0d3ea11e742ed067e4487437d5d125a44b693babd878

      PHP 7.0 (7.0.29)

      Download source code [24.89MB]

      VC14 x64 Non Thread Safe (2018-Mar-28 20:30:12)

      • Zip [23.29MB]
        sha256: cf8698d66449238234c2d1a26741d95ef6a76c189d5d90a749e842fee214c196
      • Debug Pack [21.72MB]
        sha256: a6190a87ebca4182d9a447f8eddf9eaadc8b2df4e49accfdca592ceb3705a219

      VC14 x64 Thread Safe (2018-Mar-28 20:30:14)

      • Zip [23.4MB]
        sha256: d14d2ab30495bcbc99c5008c5dee571636f094098b26d7373fda180db5adfd18
      • Debug Pack [21.82MB]
        sha256: 0293c4f58f5d8067d2a18c5312030a590b020e15d223518e00c6754f45b1296f

      VC14 x86 Non Thread Safe (2018-Mar-28 20:30:11)

      • Zip [21.31MB]
        sha256: 3baf095400eb0adb55f2d307da79206788f768a692aaa487f17cbd3cab0fb1b2
      • Debug Pack [21.67MB]
        sha256: 7192807897789fd5f3bb0d22c032dbd418d27770edcbd45d19d7348e2c72612d

      VC14 x86 Thread Safe (2018-Mar-28 20:30:21)

      • Zip [21.38MB]
        sha256: 3c9d23d1e5d575440f9acc38ebef13ef5935e7e042ab7162bc34803853af2173
      • Debug Pack [21.79MB]
        sha256: 1bf4cbb5e95446e37040ca835b81bab73d5bb7695d7f185f832b55a0a8130c38

      PHP 5.6 (5.6.35)

      Download source code [25.05MB]

      VC11 x64 Non Thread Safe (2018-Mar-30 00:05:47)

      Note: x64 builds are currently experimental

      • Zip [21.95MB]
        sha256: 14ea3280a9cce8b0e1c1b8c79f9bb68936ed58093dc7ef1f35c95f07aa6eb02c
      • Debug Pack [9.57MB]
        sha256: bf8594b1e3e84840fa286c9db230b12bfd317d60c3ea72842be9b85132b9c812

      VC11 x64 Thread Safe (2018-Mar-30 00:05:38)

      Note: x64 builds are currently experimental

      • Zip [22.1MB]
        sha256: e466a22b556c92044f9c7bcf3cc320ef657725b55ffd00fe0c9e6b23b8ef8bbb
      • Debug Pack [9.74MB]
        sha256: 71d3ddc88b7cb612db893dbf9af68866f7f453a390d7d313df5334fae2954d77

      VC11 x86 Non Thread Safe (2018-Mar-30 00:05:35)

      • Zip [20.38MB]
        sha256: 9285bf98896c1ce9374b81f65a604029a60d4af482de240929c9970c70ac1989
      • Debug Pack [9.75MB]
        sha256: 042351aa46aba2bc50bc365d237235d20191e6abba9cb1844da60d0c259c1b9f

      VC11 x86 Thread Safe (2018-Mar-30 00:05:37)

      • Zip [20.48MB]
        sha256: fbd6bc416b1e73a38ab02a1c7d2bf4c9db21111990a263fd49a950bd1c6b23f9
      • Debug Pack [9.94MB]
        sha256: a4ed6bb2bed0702fe4dd90615f67b359de9c79b20b17d7cc7c51718454a0fc71

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