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

      Download source code [25.16MB]

      VC14 x86 Non Thread Safe (2017-Aug-30 21:35:19)

      • Zip [21.31MB]
        sha256: 5827d2d60959eaec4f8737a79cb490f5ea7e6a7e9a5367af8b89ebff6e68c6ab
      • Debug Pack [22.1MB]
        sha256: f6733a2342f2becda569ba15d4f45c6c5966eb3f482dfca2a455201ded3213ed

      VC14 x86 Thread Safe (2017-Aug-30 21:35:49)

      • Zip [21.35MB]
        sha256: 732f4d09a592fceae864c51d79e51a3a00163e8ae8a57c7185627215c5c81533
      • Debug Pack [22.13MB]
        sha256: 8ad6f89696120fa0eb8a25f3cdce60b79cb3a3555bb63b14771e97264b61c50f

      VC14 x64 Non Thread Safe (2017-Aug-30 21:35:19)

      • Zip [23.37MB]
        sha256: d06a0a3e94acea6519bcc32eb7be455e1b50d9e57da2ed6c4570f740ed5970c0
      • Debug Pack [22.3MB]
        sha256: 81c1158ee55ddefc11470c3d564de7ab4e175cc9881e4aff5da100d6e6f99ff4

      VC14 x64 Thread Safe (2017-Aug-30 21:35:35)

      • Zip [23.44MB]
        sha256: bd950768f20241bc03d486e825fb06f9723ff8bf0854d0a4d3361720c65705d9
      • Debug Pack [22.29MB]
        sha256: c66f3e7c398d16f509828536ff92036a55b5d30706cb059975fa135c3aeb9a10

      PHP 7.0 (7.0.23)

      Download source code [24.37MB]

      VC14 x86 Non Thread Safe (2017-Aug-29 18:59:51)

      • Zip [21.13MB]
        sha256: d0103e198b82bd4db3aae38de4db27bc4695f6a888630154d70538e2ebda4fe9
      • Debug Pack [21.23MB]
        sha256: b7721d0036af27e320e57b7b7d4289cccac2f04354f0d7c76f4143650718da24

      VC14 x86 Thread Safe (2017-Aug-29 19:00:15)

      • Zip [21.2MB]
        sha256: c6ac14ffb69adfa26c54b86d989ae3917920e2b071e71b88e39e3d2a119d0259
      • Debug Pack [21.32MB]
        sha256: 3f475d9b358cbc05b2d52909fef61afde7b5bc4084ac2535051b79d6a0dbc7e7

      VC14 x64 Non Thread Safe (2017-Aug-29 18:59:48)

      • Zip [23.17MB]
        sha256: 93a754a61ee1d7718de56d688bf89b708a6433409feebb86e79e2ded67feaffb
      • Debug Pack [21.44MB]
        sha256: ed4eb6367e0e2a095bf031443e2dc5d01fae9d5d844045b448bfdcad76511ca3

      VC14 x64 Thread Safe (2017-Aug-29 19:00:12)

      • Zip [23.27MB]
        sha256: a0e5c319a2d0d98e4e435c3804be41556eee487abfa1a94da54f6b1dbe4635dc
      • Debug Pack [21.49MB]
        sha256: f11d491212b117a299548e021aae8f3491b7f662dcde0b5b4e1393d12b753a14

      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.