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

      Download source code [26.77MB]

      VC15 x86 Non Thread Safe (2018-Jan-04 07:06:50)

      • Zip [22.7MB]
        sha256: c48f102fa8f93824b4930af7100e3447a1a07ce6ae8e56d80e5fe21477bb29e5
      • Debug Pack [22.94MB]
        sha256: 6f147a98282909b795279c20985acaa7a8f35a52d38fedcc903f0698fe70507c

      VC15 x86 Thread Safe (2018-Jan-04 07:07:09)

      • Zip [22.77MB]
        sha256: 6174131fcd75e3f337f5952c788295e0b00e565c9ecb02703f2700310c9371b2
      • Debug Pack [23.08MB]
        sha256: 7de6b16e23d4f5fbc8f23addc9a0053ec051ab6e80df8e3fb5ad0d3ec7e5fd1e

      VC15 x64 Non Thread Safe (2018-Jan-04 07:06:49)

      • Zip [24.33MB]
        sha256: b00e802bc023e617f6fcc05a6aad7ea80fadbc94a59bd794f69f4609c1e83cab
      • Debug Pack [22.25MB]
        sha256: 77afa5fa481204a7ba755ea51636538688b21a8b88d9eed77e785932f51d1806

      VC15 x64 Thread Safe (2018-Jan-04 07:06:59)

      • Zip [24.48MB]
        sha256: 964b217fa423a971912f49017b279dad5f261be5c2f85fc5a49c109792031eb3
      • Debug Pack [22.39MB]
        sha256: 922c13167cd2ceddad2b6f31a6f56abe4b9a4ef884a075061fb5d456d1fe433a

      PHP 7.1 (7.1.13)

      Download source code [25.51MB]

      VC14 x86 Non Thread Safe (2018-Jan-04 00:43:34)

      • Zip [21.34MB]
        sha256: be42c62a620c999690acd3982b4a6bf0359f071909a9e2b88de38056d46641f3
      • Debug Pack [22.24MB]
        sha256: c148fdc4da649b028ae81b0b97a5fe04e1905b47d0877307dbda2c7581b662ec

      VC14 x86 Thread Safe (2018-Jan-04 00:44:08)

      • Zip [21.42MB]
        sha256: 48d589de6dc1fda24e1bc51245c24b4c567da970eac12151f3a6097f21dd9a0a
      • Debug Pack [22.37MB]
        sha256: f18f7296d5908636e5df834f4b9d7168f5f47ab7af4997d1c23192b9d573fd31

      VC14 x64 Non Thread Safe (2018-Jan-04 00:43:35)

      • Zip [23.09MB]
        sha256: 50085fc9ada18cd9392194128206fa180fea46bf58c440a8df76dac5646d5f2c
      • Debug Pack [21.92MB]
        sha256: 2ce1834d721871df85d8c9ab32399a1833b3fef7899534132016035c8f4212c1

      VC14 x64 Thread Safe (2018-Jan-04 00:43:52)

      • Zip [23.22MB]
        sha256: 9220e8b1af0c1907ba2cf3a7f6cc0d4eb31c679073a65f21de556bd4309b5f1a
      • Debug Pack [22.03MB]
        sha256: d33824376994a78a68a1f5453ccfc382debeba8d00b95a66dd62cfd5cd137dc5

      PHP 7.0 (7.0.27)

      Download source code [24.88MB]

      VC14 x86 Non Thread Safe (2018-Jan-03 18:33:11)

      • Zip [21.3MB]
        sha256: 684b0c45b6650c561ffb8f9b4c531b51081935a423e2c81c9d245e1790650538
      • Debug Pack [21.65MB]
        sha256: ca13d733f9f83f9a00ef5290fd6feea20ea39898e399363ac42abd9d3cd673a9

      VC14 x86 Thread Safe (2018-Jan-03 18:32:59)

      • Zip [21.37MB]
        sha256: 58c47bbb79dddb0712a0fc6089ab76b6fb2a9d354ba4f7ebb04a650e8a436c0a
      • Debug Pack [21.76MB]
        sha256: 81252eb330685e27bbca0a5b22aa6dfc43fcd32389f04d0161e15968f76a36ba

      VC14 x64 Non Thread Safe (2018-Jan-03 18:33:05)

      • Zip [23.28MB]
        sha256: c02547db99576f1ad60ffacfaf70e1da21c71700bd2dc1e5b72b78dbbf0e3a70
      • Debug Pack [21.69MB]
        sha256: a53b972bb8d2e5c1e0a957e2f6eb06b5318f493fab9fd2d6460447ec510f8a6f

      VC14 x64 Thread Safe (2018-Jan-03 18:33:18)

      • Zip [23.39MB]
        sha256: dbc5947bd0840dceedcc4f9232b2e49e2a6fa0eac9fad860fc3dc6c94c1bb6c0
      • Debug Pack [21.78MB]
        sha256: b2f4782fec12db38e0c1d308cd3654b16c304217dd4bf9f7a2cfb8e2c5de3472

      PHP 5.6 (5.6.33)

      Download source code [25.05MB]

      VC11 x86 Non Thread Safe (2018-Jan-04 00:29:31)

      • Zip [20.37MB]
        sha256: f527e6e04ff428d9d7bb3079835a81b6240e9dc7bec44d007457bff677f29b1d
      • Debug Pack [9.73MB]
        sha256: 78728a14785527ea5fd6a48a43f8fc34b489cc7233855ac5642f64a17b775449

      VC11 x86 Thread Safe (2018-Jan-04 00:29:42)

      • Zip [20.47MB]
        sha256: 5a35018b2c2770e2c31d894ada9bd6aaa137081f66a1b48e84988eb1925e328d
      • Debug Pack [9.92MB]
        sha256: 21520fa0b500a083c0e0efc6311146ee541665f638e77cd393e465364993f3c1

      VC11 x64 Non Thread Safe (2018-Jan-04 00:29:32)

      Note: x64 builds are currently experimental

      • Zip [21.95MB]
        sha256: 7a1f04c9aa928c9f33f26dbd2a9af3fd28c3ac26cb3f2d894342f13747ca058b
      • Debug Pack [9.55MB]
        sha256: 241bd19060d1fcdbe69b42774f749d710ea3795b0d1cc482089fa5c63554f1b7

      VC11 x64 Thread Safe (2018-Jan-04 00:29:35)

      Note: x64 builds are currently experimental

      • Zip [22.07MB]
        sha256: ee016e3d82db5a12c4027a53521a464673f398c1535ddff6ce5476ab27e43333
      • Debug Pack [9.72MB]
        sha256: 11f1d1a590280020f9cea3a7748de6868dc4718db38450c40ac325b6e5bb3955

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