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

      Download source code [25.76MB]

      VC15 x64 Non Thread Safe (2018-Apr-26 07:51:44)

      • Zip [24.56MB]
        sha256: 365193717645c4cb60ef907c302a07324e99adfa3ae69b10d084f75b2c0a298c
      • Debug Pack [22.56MB]
        sha256: 118d541ce5a7d262ac681a0d448d83a3498a2bea60bd4a1da2bda1e4b134a723

      VC15 x64 Thread Safe (2018-Apr-26 07:51:55)

      • Zip [24.7MB]
        sha256: a00982cd6f94b7c006771bb233fda649a4c159d47a8dfaba2bf10a885e2c9d9f
      • Debug Pack [22.7MB]
        sha256: 0c55073ae8039a8186a8815d874bc687b93782e1fb36efe9f586eeb81c884c9b

      VC15 x86 Non Thread Safe (2018-Apr-26 07:51:47)

      • Zip [22.89MB]
        sha256: 6d8901e5bdf57544629a11687daab5e1208877d876208e6c9500c3b68a99f018
      • Debug Pack [23.3MB]
        sha256: 6732acd2de88cfba991271d06ac1ec9afcea7a2a81e6bcacdb9432c2b1ef8793

      VC15 x86 Thread Safe (2018-Apr-26 07:52:02)

      • Zip [22.96MB]
        sha256: 1a030f161f5577c8934bee39de0ea01c600249f2139b1fb881ddcc48dd6c21f1
      • Debug Pack [23.42MB]
        sha256: 633dce94a591852f16709fa437cc93a9d29a7e338f795465448cf779ddcc44c3

      PHP 7.1 (7.1.17)

      Download source code [25.54MB]

      VC14 x64 Non Thread Safe (2018-Apr-26 07:48:35)

      • Zip [23.15MB]
        sha256: 5d4e114281b09d5bbb9ca6b68737da95f8c36d9c762311c4336c936c641958b1
      • Debug Pack [22.04MB]
        sha256: e68df0684774966448d22b7ec67f26277c7f10b1291234025402a01db782426a

      VC14 x64 Thread Safe (2018-Apr-26 07:48:51)

      • Zip [23.28MB]
        sha256: c3c6cda091240ca17620dccdefa5738ef253b32b138f14d5c14b23937ebb9d3e
      • Debug Pack [22.14MB]
        sha256: 084e23ba0c3b67537d7d1583186edd1fa5c9c416686353f4cf13b2cf109172c5

      VC14 x86 Non Thread Safe (2018-Apr-26 07:48:34)

      • Zip [21.38MB]
        sha256: 440edaf8e83caa1cbb5ab991268fbde74a8fe8808988f939d54da9f7686ed441
      • Debug Pack [22.38MB]
        sha256: 98203f1c937d600b47b0f6ff040554a137c09c1748a81a029c8840ee74cbb2d4

      VC14 x86 Thread Safe (2018-Apr-26 07:49:06)

      • Zip [21.46MB]
        sha256: fe21dacd5c427ca510d0dab1f9bdae6f2c03c9bdcd612f39f5761d8a4cddf0ce
      • Debug Pack [22.5MB]
        sha256: 088e91b3a9b4dca2d223ef25e5dd3ef5e032ca5675a9881399071cdd5ee3ad97

      PHP 7.0 (7.0.30)

      Download source code [24.89MB]

      VC14 x64 Non Thread Safe (2018-Apr-26 07:45:26)

      • Zip [23.29MB]
        sha256: 7d7b0036106346d74637933e37fef367e170655d1a72e0e78c3331a24412bb94
      • Debug Pack [21.71MB]
        sha256: e19e008b25746a2358bbbcfe69fbaf0d996f02dcdd0bf52283c88c7c598b5890

      VC14 x64 Thread Safe (2018-Apr-26 07:45:29)

      • Zip [23.4MB]
        sha256: 0c30bb0a52f52118ed13fadb92eee80919e7d3c63dade82ad1c75e535ad23d3e
      • Debug Pack [21.81MB]
        sha256: 87698160937dcf9a31048b3ef711cadca1e40790fb20fd9d7db616dba0dbfc9e

      VC14 x86 Non Thread Safe (2018-Apr-26 07:45:25)

      • Zip [21.31MB]
        sha256: 8794417d3d2bf100b058c15a364aa83f37902702bffafb88308e191ed9f72cb7
      • Debug Pack [21.67MB]
        sha256: 1061af010ad1f5a36582aa69252b2b0ca58e94753ab5a4fbc93eef97476ab342

      VC14 x86 Thread Safe (2018-Apr-26 07:45:34)

      • Zip [21.38MB]
        sha256: 7ac9ceefc3b6c561ae24c029edac86278bb3bc0c4a00fb8222fb25d32b346091
      • Debug Pack [21.79MB]
        sha256: 0f145b931408d6540cabb90da9c39e98659547710e0c5deb6fab84c6da6b826b

      PHP 5.6 (5.6.36)

      Download source code [25.06MB]

      VC11 x64 Non Thread Safe (2018-Apr-26 07:43:30)

      Note: x64 builds are currently experimental

      • Zip [21.96MB]
        sha256: 9ef44215f29f06413a0148c66508fb28678f79e627fb77a69f5e3f65ce7e9556
      • Debug Pack [9.57MB]
        sha256: 253128fb7eb24eec6681ffe8c2340dfa44538912e67961dbf7b9ef6b2f6945b5

      VC11 x64 Thread Safe (2018-Apr-26 07:43:32)

      Note: x64 builds are currently experimental

      • Zip [22.08MB]
        sha256: 44126577080726d1f486a060ada43d3f2d8539a718ae62c14241713425e47cce
      • Debug Pack [9.73MB]
        sha256: 366f188cae100f3001ac8cbc3c9bd04b40011926da98ad827c1003fad14eaf9d

      VC11 x86 Non Thread Safe (2018-Apr-26 07:43:29)

      • Zip [20.38MB]
        sha256: 0b19bfa3231f6b15d6acb3e9cd02409382dd3f08686d078781111a050e6e5290
      • Debug Pack [9.75MB]
        sha256: 72ac17d6bc5ac3ccde79ca682e625c773808fe20ec8601883e5b046ee65f5cef

      VC11 x86 Thread Safe (2018-Apr-26 07:43:31)

      • Zip [20.47MB]
        sha256: 13dc9d8442e3cff1fa8e21e14d75eaf1d2c1e4fd925470177a75cdad2ec3719f
      • Debug Pack [9.94MB]
        sha256: 60f5627e8adfb694eec2d13765783f7f8916ac99e79e89bcebb07aa90a80485b

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