• 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.4RC1)

      Download source code [26.07MB]

      Download tests package (phpt) [15.48MB]

      VS16 x64 Non Thread Safe (2023-Feb-28 17:51:50)

      • Zip [30.22MB]
        sha256: e5d6f3b4d87d98aeef56e6e56f4340c59f444344c76c77deb8aa03358e7a348d
      • Debug Pack [24.49MB]
        sha256: 29566292723948e3e76a254db222719f192434704ba6d9fe1f8605893eb4e0c5
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 93254397e2e609db85d1b2e5dd6797719f67865bec5f78daa55ac309282fb912

      VS16 x64 Thread Safe (2023-Feb-28 17:49:50)

      • Zip [30.33MB]
        sha256: 892f0a0223fb84fd46d6c4979462a783476c71b00fa495f713a3c9e5ff3b448e
      • Debug Pack [24.51MB]
        sha256: 041a762355cabe42c4b45c4fa99cb8556a0e80eb5afe7c2fc59483bd82026d0a
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: cfeb3b826e355515af6afc7ab51abcdc6d2693b1ec17451c444c71ec3ac8f7c4

      VS16 x86 Non Thread Safe (2023-Feb-28 17:34:38)

      • Zip [27.13MB]
        sha256: 5e7a532a6f8a48c87970a07414f78533a12595a25c293009be1c1126e628a23e
      • Debug Pack [25.11MB]
        sha256: 0af49a3d5dd73b09a47cd78b6c875419728138238dcb33c4cf7be2e9628ea630
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 88e1d7e8fd18c30f9e4ae83529716a8c94167ea2bf9d235adf16a4f7c2165430

      VS16 x86 Thread Safe (2023-Feb-28 17:30:36)

      • Zip [27.1MB]
        sha256: 4f513fe4f36d7da678bd9719389b8fcf24ae12f27a408561a3a29e387d054522
      • Debug Pack [24.75MB]
        sha256: f4ad7c289de15c681f3070919a90d7602b5c396d579fda01e9e4461d83d982c5
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 056a56a6f787486d6e2ac3c3f123b5eccb636e7b606b928346e4b615e065a6e4

      PHP 8.1 (8.1.17RC1)

      Download source code [25.57MB]

      Download tests package (phpt) [15.21MB]

      VS16 x64 Non Thread Safe (2023-Feb-28 23:38:06)

      • Zip [29.26MB]
        sha256: e5aa6910ab540d8f338611cdcae8d5c29cdc2ef7c62fc0ccabccd9f0202ba17b
      • Debug Pack [23.84MB]
        sha256: 6112b380f1afa1dc041d2027fa167c1b64fd9a590436584ce80734bd337d3ee4
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: dc1e1f7fe439d6fe17747db3bfee2c76b89691e4bc2f96c9b79d4a418afb2d1f

      VS16 x64 Thread Safe (2023-Feb-28 23:57:34)

      • Zip [29.37MB]
        sha256: 8204aaa08a92949bd7e3ec8dde5ff08ca2fcb483a396779b3f5f1bed1fa833f8
      • Debug Pack [23.86MB]
        sha256: 5eefc5c32fdfa47633cc2df8f06a2cc8a98b506c1b982a7d0ab0194e3736c873
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 8ffb1c81c065bb51ce8563fe487e26d5118c3576182edf8e85e93683c4825cc0

      VS16 x86 Non Thread Safe (2023-Feb-28 22:29:56)

      • Zip [26.32MB]
        sha256: 9e5c0d73350b91ac7fb2c75e0cd7dcb5036853445ad589d10d3c3e4ead6465a8
      • Debug Pack [24.4MB]
        sha256: f4e8d81b16ea6b4f10f715c1662422f50a60188f6e1d272e42095eda93c2fd1f
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 49e4142b65e7049cb7223c085bf13a098265adf1853e506351b57b3eb2b05030

      VS16 x86 Thread Safe (2023-Feb-28 22:12:40)

      • Zip [26.3MB]
        sha256: 702b920d14a7c3e6d632e4c71b56ac25562ab6dc06913bea1b8489a92dccc951
      • Debug Pack [24.06MB]
        sha256: 16ace9efc2db525b44dd810a081c7f4e9bb4911c29a3809c3a897e779aa26154
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 96a6b891c537cdd00bab027b5edb1743507cee60d341bcf236d04a50b190b900

      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.