• 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.2 (8.2.2RC1)

      Download source code [26.02MB]

      Download tests package (phpt) [15.44MB]

      VS16 x64 Non Thread Safe (2023-Jan-18 10:24:36)

      • Zip [30.21MB]
        sha256: 13049df46976af9a7a75d4855fe2e040089ab241357d2a9cc621287dfa224a6f
      • Debug Pack [24.48MB]
        sha256: 54823835bc0a705c2880d6400afad356d9ad5e9744938cba87e457eb53d409b1
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 9c65344dbc00695fd1ab6a4e3d0c4714d09e1a97fd1530e3c766e7b913028a63

      VS16 x64 Thread Safe (2023-Jan-17 20:52:58)

      • Zip [30.32MB]
        sha256: 8f365087c12d41ff48e3ac33bc7891d4db12ad096f1a34b5773d462d8313cb63
      • Debug Pack [24.5MB]
        sha256: b80af091ab31364e5c0c1d4e3ed2892dcacac18fb4000805a3bb0d4a7ae42170
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: b02f6909ba6648d70f31a379f5e3353d62477aa3cd3f6933c837c04306c408fd

      VS16 x86 Non Thread Safe (2023-Jan-17 20:46:20)

      • Zip [27.12MB]
        sha256: ddffed387a77d8ef41b6532fe8b984ffd6fc6050ec533afb180b71ac99fc2dcb
      • Debug Pack [25.09MB]
        sha256: 3905707e491b3828f0c0603d659127b944c4ba37d0ca80aa1a34ae5875a6c3d5
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 86749c4baf71446b0ed8d9a2a59ea7988a949d2faad8dfd39e31363996640d9a

      VS16 x86 Thread Safe (2023-Jan-18 10:22:32)

      • Zip [27.1MB]
        sha256: 288d65ef92c7d47ec2cc8d267a6abbf5aec8303c269fc8024ff9bc787e2e10fe
      • Debug Pack [24.74MB]
        sha256: a62391b980bacbd04a91426d85d9c896a78d9489b0cd8c457ed66b1462b4b7f3
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 0b1f274bf2cd1bacc5e76008221cd41ade88c8f52bc8cb576c1de4596ffb08b2

      PHP 8.1 (8.1.15RC1)

      Download source code [25.54MB]

      Download tests package (phpt) [15.19MB]

      VS16 x64 Non Thread Safe (2023-Jan-17 18:12:48)

      • Zip [29.26MB]
        sha256: 5c4fcee1c32398601aace4d63d998296089bf3f916845d110508d4791d65335d
      • Debug Pack [23.85MB]
        sha256: bfd98bc5b25452e7a7c0322c3d5d157fdb8785e0fdb5c4d60463cc7caf2efe93
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 45998cd797d5950fea9cff4ad30210c985ed551a99d3ff6926a72c6df90f45a8

      VS16 x64 Thread Safe (2023-Jan-17 18:26:40)

      • Zip [29.36MB]
        sha256: 0cc852d82566c6cc65c10071b30bc0925f625a5db4b2d75cfbeb0d6a48042eb6
      • Debug Pack [23.85MB]
        sha256: 089b3384f66f32820a8112409d2c8d96bd3cac814c128dfa1286252de4ac404a
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 940f310d1887df1c24cb3eadc0956724beca16694fefde3de5a5a547410a598a

      VS16 x86 Non Thread Safe (2023-Jan-17 18:12:16)

      • Zip [26.31MB]
        sha256: a5801135dc4685f84cb9bb2e2927fb1c5dbaf1ddae96bdf5815516e0909f7ead
      • Debug Pack [24.41MB]
        sha256: 4a9e965ee592e2ea44d8f22f72e17701e6999267d368ba6b70bb64a09b4d59e3
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: b008f6aaf020393db069dbe5faff204984cc9e8d1b01d538398d690a58514767

      VS16 x86 Thread Safe (2023-Jan-17 18:24:06)

      • Zip [26.3MB]
        sha256: 7fc78cb0459375c77719dda35f97a77fe109c63ddb35468189cce1df09c2cbfc
      • Debug Pack [24.06MB]
        sha256: 8a186700bdd6679f9b8f160eb5987d9c8a11a1682411796db9cf4946d3fc21a0
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 2bd08a7812ed190b19b8ed64d49f6090164543d9ff64572b1d2703fa8f2d0fde

      PHP 8.0 (8.0.26RC1)

      Download source code [23.59MB]

      Download tests package (phpt) [13.55MB]

      VS16 x64 Non Thread Safe (2022-Nov-08 23:23:46)

      • Zip [25.52MB]
        sha256: 277833f312044f67645ef7953509be85e1c9732e65f7c74c8fc527d03414cd19
      • Debug Pack [23.21MB]
        sha256: d0850d2356424b9c755d3c52656d5f4f7d55c9af3430548864b8a1d469455b15
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 48600c602860c5d73a752c7634f25cf0ea4be0c27ff88dc4f9d7b1d99d9bf594

      VS16 x64 Thread Safe (2022-Nov-08 23:19:08)

      • Zip [25.63MB]
        sha256: 8b14c962932647a7ee8f900d139c5fed73e1ab5e7e6f59c7545c1d9638568849
      • Debug Pack [23.22MB]
        sha256: 725bca6fb1448d14d84c6e81f4096508fc83593b22b0fc057de01239d92913e2
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 25f4dec5ca547663547307b26d1f5314ed544b0ca9848029b1cd57a418882e82

      VS16 x86 Non Thread Safe (2022-Nov-08 23:14:46)

      • Zip [23.65MB]
        sha256: f7648fac54334ba6aba43bf7c4486f1f7792a6fcbb3b996cd309db414a1358e9
      • Debug Pack [23.86MB]
        sha256: 19edce2ab491892dfda98586fe9de2d4fa7711be8bfdb75dd7dd84063f746c2b
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 7fc42c632b1d4824ec82e499de596a9745bde8d9827ac08e2539450bba43b94b

      VS16 x86 Thread Safe (2022-Nov-08 23:19:54)

      • Zip [23.64MB]
        sha256: 9b1aebea20ecd58ac0db23f4f9cb69c23633afc5d65510dc1ba14da4ad8cd1b0
      • Debug Pack [23.52MB]
        sha256: 6cd15fd261bfb0648d5b9315f02ee3896f9d060733576b7a3d6fe9e9342c18e5
      • Development package (SDK to develop PHP extensions) [1.17MB]
        sha256: 894fc49192db513c2ae7ab30c4f162cb09117ae0ff756b0c9f7d8574a449bb5a

      PHP 7.4

      7.4 has no release.

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