• 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 UPGRADING 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 has no release.

      PHP 7.1 (7.1.10)

      Download source code [25.47MB]

      VC14 x86 Non Thread Safe (2017-Sep-26 23:03:53)

      • Zip [21.31MB]
        sha256: b795cc120ec887aa42a3fa8dc621db17bb24336b1490547af28dd575ca52cd3b
      • Debug Pack [22.11MB]
        sha256: 40b9ae4902c3a138fd10016d95199968959d14b78118790285013654ed0dbe83

      VC14 x86 Thread Safe (2017-Sep-26 23:04:23)

      • Zip [21.35MB]
        sha256: 2a800ea6806a14e824bb05d44305219e76741119ee0321695a6647eeaf0e0ece
      • Debug Pack [22.14MB]
        sha256: 5ffeb9efcb3ed370ad6b640c5a8e8938ce245b8afe68f0a6b3ee7eab962f1bd7

      VC14 x64 Non Thread Safe (2017-Sep-26 23:03:54)

      • Zip [23.37MB]
        sha256: 341b1e88d6304d23d8799ae6c98561b4a545d1aa97ae44b38c3a38b32067c252
      • Debug Pack [22.33MB]
        sha256: 69ff986030b912a3a0b2efb04395cede24788f1b88b8c937eff01f2a332b2826

      VC14 x64 Thread Safe (2017-Sep-26 23:04:10)

      • Zip [23.44MB]
        sha256: 0744d8ea26081516852ed4bdc51c08b3f883840d843e051bbe9e19d76319e72e
      • Debug Pack [22.31MB]
        sha256: 9937a8ada30257f1a23d17dedce0eb21a038d8675842684590df14c49180e737

      PHP 7.0 (7.0.24)

      Download source code [24.85MB]

      VC14 x86 Non Thread Safe (2017-Sep-26 15:37:18)

      • Zip [21.14MB]
        sha256: ccc6ef551c20374911fbeb8959d4e4116704210e7cafffe4518795f58b2907bf
      • Debug Pack [21.23MB]
        sha256: f819c6bd51f523287076cbf7ea01904f53fa1045cd6c10cda3124d94fd076a93

      VC14 x86 Thread Safe (2017-Sep-26 15:37:35)

      • Zip [21.2MB]
        sha256: ff6cb30240de2747d427514eb8d573b2d07c5569ecf435e9cb4a9b4439c979fe
      • Debug Pack [21.32MB]
        sha256: 4c38437c0cc4d54197e96307bc6f287e1402270eb4a038867b71b04fa3dbdccb

      VC14 x64 Non Thread Safe (2017-Sep-26 15:37:19)

      • Zip [23.18MB]
        sha256: 3d2b9f0e97fdf48e3990ac1e92e1062c0d70804d7b47d7c804b7fd93534bdc19
      • Debug Pack [21.44MB]
        sha256: f3c51248b6054d5990c5bd5c334fb5222c1f5b0c5fb1fbb755084cc2638702fd

      VC14 x64 Thread Safe (2017-Sep-26 15:37:19)

      • Zip [23.27MB]
        sha256: aff21997fb19b13ff8160e7f39518123880cca59ba80c32d57f36695678497d0
      • Debug Pack [21.49MB]
        sha256: df151f04297c359f4e91ad749dd3abe9fbc1c12219584f231db594f1324ba068

      PHP 5.6 (5.6.31)

      Download source code [25.04MB]

      VC11 x86 Non Thread Safe (2017-Jul-06 17:41:40)

      • Zip [20.36MB]
        sha256: 6d4f973fae39aaba6d974944a9b9458091b3731274376b94b58f9978cd812ea7
      • Debug Pack [9.72MB]
        sha256: ecf9e792b812ce1a1135dfcaba71fea3556a1a35ae5ab5c14277f1a3753b0954

      VC11 x86 Thread Safe (2017-Jul-06 17:41:38)

      • Zip [20.46MB]
        sha256: 4813e4bcb76060fcf7dd1d9f3b465dbcc32997d8d70a74d3a68919a4d8fd0338
      • Debug Pack [9.91MB]
        sha256: f26f3747e804e4622279648addbbfb5862fe4129ed2d90e8be98d70ae8cb0f73

      VC11 x64 Non Thread Safe (2017-Jul-06 17:41:38)

      Note: x64 builds are currently experimental

      • Zip [21.92MB]
        sha256: ca7d84d6b89e7f61391875b8a50c12a70d3047b818d81a9b2e8d5bd1388462fb
      • Debug Pack [9.54MB]
        sha256: 3dda8130053fb54ddf7f9b4e154fdf8f31efbceacd30fd5be0364e7a482b3913

      VC11 x64 Thread Safe (2017-Jul-06 17:41:39)

      Note: x64 builds are currently experimental

      • Zip [22.05MB]
        sha256: 3b333cd4a1e44edf398cde84697c6a9f4806d49dc3e9d48859569d4b2b211c64
      • Debug Pack [9.7MB]
        sha256: 500d4d0061e2c85df92fd1d6225d485306ff68c6052820729c0e0378a6e12724

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