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

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

      VC15 & VS16

      More recent versions of PHP are built with VC15 or VS16 (Visual Studio 2017 or 2019 compiler respectively) and include improvements in performance and stability.

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

      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.

      x64 builds are recommended (almost all Windows installations support x64).

      Long and multibyte path

      PHP 7.1+ supports long and UTF-8 paths. See the manual for details.


      QA binaries are NOT intended for production use; please use the binaries at PHP Windows downloads.

      Archives

      Past releases are available from our archives, older versions not found there can be found at the Museum.

    • Binaries and sources QA Releases

      PHP 8.1 (8.1.6RC1)

      Download source code [25.34MB]

      Download tests package (phpt) [15.06MB]

      VS16 x64 Non Thread Safe (2022-Apr-27 09:21:30)

      • Zip [29.23MB]
        sha256: f82af8bc62f7878c9103607aff96a8abe03a3e68add5eff8edf1e13a588aae1c
      • Debug Pack [23.75MB]
        sha256: ed84533830c03d8bbd13c0d6d8fd4071f3537d646c82d7a8a24d06089d04ab0b
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: b2bb69d636e61f7250083cd44ae827299b99e1c83c65b4a231f04afdeabecf69

      VS16 x64 Thread Safe (2022-Apr-27 09:28:52)

      • Zip [29.33MB]
        sha256: d8eb3c327aa3655f284c8d6682c1e5d62f9e45eeccd80bb0dbb5537ddb386121
      • Debug Pack [23.75MB]
        sha256: bacecc918da91ada17b5f5263d505af31ad1adac9f77dc1a6ecb9d44fbadbaa3
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 42f031ae0e2a5d115ffc5d2168c793780fbbce1ff021613e18194da58b114e16

      VS16 x86 Non Thread Safe (2022-Apr-27 09:18:34)

      • Zip [26.3MB]
        sha256: bab16d91630a71545a76c55d880488d8ea04078eab270eb63bee803d9bc8314f
      • Debug Pack [24.32MB]
        sha256: 78c6e2bb0c5f3d5778c55c89e0d756776ebbfe4cdaa2196f84649ac7036be920
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: d8462d9b3c0edc7a679c138b04bc2c0552843a9bf75470dba4b2cf3365868438

      VS16 x86 Thread Safe (2022-Apr-27 09:20:20)

      • Zip [26.27MB]
        sha256: 60f5cc24f352a798981a304c7815af3c5057727b516c582db4071d0cb79d41e1
      • Debug Pack [23.97MB]
        sha256: 71b6345b635d3a5985f979d7fc638e8a7fed5af5feeca184ac627b233faf5c71
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 5ece64d673cc796cefc204db6529e6dd171a5068319e4c6a640da96787cd606e

      PHP 8.0 (8.0.19RC1)

      Download source code [23.53MB]

      Download tests package (phpt) [13.5MB]

      VS16 x64 Non Thread Safe (2022-Apr-26 09:22:36)

      • Zip [25.52MB]
        sha256: 2873c1e8734db525808ae0d0949071dd5d21a40f86268ac6329010f34134261a
      • Debug Pack [23.19MB]
        sha256: 9cc216d092cbf51929bde2ad0a7ab43f5f3a94d89d7b514f4e005aebfbbcb6d8
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 622e3b5a2c6bba8e97608e6f6871e446e572471c062c7e30869a1fdb48e62050

      VS16 x64 Thread Safe (2022-Apr-26 09:27:16)

      • Zip [25.62MB]
        sha256: 2762fdf32c426760ce367b550e2032e9d40a548d0683d5641ea03bbef34e84d8
      • Debug Pack [23.2MB]
        sha256: 03cd7fd72ab0ce1a46d81144a4fff253c2703f45fd32f6efe4cc255fe03aaf57
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 6f4637f694f87b880badb8addef7e1eaf939fef86a0ded62fb72641eb1c2636a

      VS16 x86 Non Thread Safe (2022-Apr-26 09:21:52)

      • Zip [23.64MB]
        sha256: 7bf1d118176674081d236677d476c75bb0df4a78ec5a4a59ed8e766c525df5a6
      • Debug Pack [23.85MB]
        sha256: ef80e0788655a8fc12682138627cdf8313b478cd0bfd7e9c7ca834b4b95ade63
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 351fc7fa142b641b0388ccae1b6ee64f5a0b651eb1afcce44b947705870d3863

      VS16 x86 Thread Safe (2022-Apr-26 09:21:54)

      • Zip [23.63MB]
        sha256: f74b9865b8fc0b6766f3b0677e9cfe6574f506c167b01003f15ed73398cec262
      • Debug Pack [23.51MB]
        sha256: 564725ac008c331b3344d46d6e97d6ecc16b2ac13192ea63da6cbe5db3c9f4dc
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: c48e5daa8d81082a29ca5161bf05be28f5ed8314a3605b1b364fbb99dd706e3b

      PHP 7.4

      7.4 has no release.

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