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

      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 HTTP Server builds provided by Apache Lounge. They provide VC16 and VS17 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.

      VS16 & VS17

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

      - The VS16 and VS17 builds require to have the Visual C++ Redistributable for Visual Studio 2015-2022 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.5 (8.5.1RC1)

      Download source code [31.74MB]

      Download tests package (phpt) [18MB]

      VS17 x64 Non Thread Safe (2025-Dec-02 12:22:12)

      • Zip [32.96MB]
        sha256: 426715a34054de1c7556a87db8103882a3812d8bf2f306a0cbba76f1b789ba96
      • Debug Pack [37.59MB]
        sha256: 0f71e9cb3b7b9cc35691f06898cf6a183cb35ea5f62e24b4387d1cd2d9dce975
      • Development package (SDK to develop PHP extensions) [1.64MB]
        sha256: 26d79039b4db868e58cbbe2c1e11346f1389d2c6929e002a691fe833a86aaaf2

      VS17 x64 Thread Safe (2025-Dec-02 12:22:48)

      • Zip [33.08MB]
        sha256: a889eea56456f047b1dd2ab17854654525f0a28781ce100761e95c3cca7a2c55
      • Debug Pack [37.6MB]
        sha256: c839544db9b72bbc7807df77e4d09032b8baf51ae92436d20fdc3bf3fa217015
      • Development package (SDK to develop PHP extensions) [1.64MB]
        sha256: 7c51f72023b064208f36993e9741476d1b969572cc5e01c887cb317f2337684f

      VS17 x86 Non Thread Safe (2025-Dec-02 12:19:40)

      • Zip [29.46MB]
        sha256: 1037ba2d396cbf65433e65e802e0d6ef316b031d1c3b50de4324cdfae64afff6
      • Debug Pack [38.05MB]
        sha256: 45b42a963cec9a8cb6698a1fff59afe320a4ca39531d2868b7816196ec858158
      • Development package (SDK to develop PHP extensions) [1.64MB]
        sha256: ab06fbb1c7fe665b5305817a0cb75210f39d56e7f65906d2f39342a84d42bdfb

      VS17 x86 Thread Safe (2025-Dec-02 12:21:24)

      • Zip [29.51MB]
        sha256: 6853749bef5870b3350dab9910237bc41fba3b15379be060cbd4ddcbf6e5fa93
      • Debug Pack [38.07MB]
        sha256: 635d45ae5f26eb0b5af5ed74d54f65375593173f87bad3156772b34cb7e7edc8
      • Development package (SDK to develop PHP extensions) [1.64MB]
        sha256: 692cb32f349e8bc3787da40c5a4920484076134687f2dd06eee4b5b4d85aea0a

      PHP 8.4 (8.4.16RC1)

      Download source code [29.92MB]

      Download tests package (phpt) [17.44MB]

      VS17 x64 Non Thread Safe (2025-Dec-03 09:51:56)

      • Zip [31.95MB]
        sha256: ae6f73ef4d68c907fd5394a8fb25a222874e9dcc0887dd003807006b83ca229f
      • Debug Pack [36.66MB]
        sha256: 25b488a52979592a6bcdd3d31dec97636a43bf72189de17eb72edfedccb2c974
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: cbe91bea2ea11f59ef590d857877d49cca27a52f00c9864283171b3c2b705ec2

      VS17 x64 Thread Safe (2025-Dec-03 09:49:22)

      • Zip [32.1MB]
        sha256: 3929a72f58b0553c2b752236060233530922fa9cf57e967c17f6f2caf3b95ded
      • Debug Pack [36.87MB]
        sha256: d51da1eb3d074424608c42ebc04d5f7d9a25cc7f9170c8e6ea690b9c94c80c38
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: a185b527c19bede24810d1ddfcab641827357f3be078223f844da781a5721dfc

      VS17 x86 Non Thread Safe (2025-Dec-03 09:47:52)

      • Zip [28.63MB]
        sha256: 1407accce4ae9b6ee42b4841cf655282e1ec73163d9278e81c1bbe4abff314a3
      • Debug Pack [37.23MB]
        sha256: 7e21dce796d471833f44767a90a94460042e571ff9d5003901223ba1fa775d94
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: c403d4074f143a1e56c2cd97948692fe7e21e90b2517f337d4a9997acd897a1e

      VS17 x86 Thread Safe (2025-Dec-03 09:47:52)

      • Zip [28.69MB]
        sha256: e2c236bf4aee794f3ccafa7f40d12c22ea977d2bbc251b3c9e7a000e0de11503
      • Debug Pack [37.29MB]
        sha256: d5a77e0f44227e2902706955c96fa16df5587d15069ec5a00d5967713a8da292
      • Development package (SDK to develop PHP extensions) [1.36MB]
        sha256: 590c9ce1a0d156b4c14615056db5b286090a698f509c018ffb40fee24eff09b4

      PHP 8.3 (8.3.29RC1)

      Download source code [27.66MB]

      Download tests package (phpt) [16.7MB]

      VS16 x64 Non Thread Safe (2025-Dec-02 22:10:52)

      • Zip [30.72MB]
        sha256: 53ee3fe048dd6312ddb475c18b50389f64ac13a7a61ad907bbd0223da70a09b5
      • Debug Pack [30.2MB]
        sha256: 9312d336dbc9e3f15ee6ce30038faf03756bbb2113388d825f03e6823f23e850
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 14872377d7bff7c81fc13fca9c434bf01922eed4e1dcf417073b0e8db7799855

      VS16 x64 Thread Safe (2025-Dec-02 22:11:02)

      • Zip [30.87MB]
        sha256: 2882251ad8ea76f83d08d236c21f83278cbda1aaacfd7d8f75c2cf85b49f5f5d
      • Debug Pack [30.2MB]
        sha256: 652e828309a98b2bc7824d1bd97dc216b0b3cb8c6860f7a4d1b5640317919c86
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 4e21380a227ac5cea684595bd0c3df2ee18bcf0de9e681d1bed6b8eefc115186

      VS16 x86 Non Thread Safe (2025-Dec-02 22:11:06)

      • Zip [27.6MB]
        sha256: 7d77bb0c23187238b7b3dc618ec78d4808589066e1816415fb4da419c4deb558
      • Debug Pack [30.34MB]
        sha256: 9459bd44a70467c2e9ba9d22abf9c1e72ba8d5e4ead3af702270a5edae475bd7
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 007776c116085763dc0d0ffc571a8d245056ea8bd2c97356a34ae1275aa5afff

      VS16 x86 Thread Safe (2025-Dec-02 22:07:38)

      • Zip [27.57MB]
        sha256: 6b1e12585ad2f987f0d9d08ef4e2f8c36cf073c3f53fb54cbe9066ac42558b03
      • Debug Pack [29.9MB]
        sha256: 648b3c3292d8f2ee60fe51dc74cbe980f809ae01f2067a7d5731ff2d899c4d86
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 7fad806acb598a2a2c8de2a65d640593a9bb9989cc86a698a09071796bbf9b31

      PHP 8.2 (8.2.27RC1)

      Download source code [26.63MB]

      Download tests package (phpt) [15.87MB]

      VS16 x64 Non Thread Safe (2024-Dec-03 14:54:38)

      • Zip [30.33MB]
        sha256:
      • Debug Pack [25.48MB]
        sha256:
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256:

      VS16 x64 Thread Safe (2024-Dec-03 14:58:44)

      • Zip [30.44MB]
        sha256:
      • Debug Pack [25.48MB]
        sha256:
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256:

      VS16 x86 Non Thread Safe (2024-Dec-03 14:54:04)

      • Zip [27.22MB]
        sha256:
      • Debug Pack [25.61MB]
        sha256:
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256:

      VS16 x86 Thread Safe (2024-Dec-03 14:52:16)

      • Zip [27.2MB]
        sha256:
      • Debug Pack [25.22MB]
        sha256:
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256:

      PHP 8.1 (8.1.27RC1)

      Download source code [25.79MB]

      Download tests package (phpt) [15.37MB]

      VS16 x64 Non Thread Safe (2023-Dec-05 17:04:14)

      • Zip [29.33MB]
        sha256: 6daabc1841dc844218944fedbf90ff034ccbee0b0cbf0761ed406c78dd6e594a
      • Debug Pack [24.89MB]
        sha256: 3dcb53e30bb82761fded6faf199f83386349e768a12a6fac75715c492e70ee86
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 4e5a3fec296c62a7dcc482a433c1a8c9dd64bb0b5c6b0723ba46767812df51c6

      VS16 x64 Thread Safe (2023-Dec-05 17:06:18)

      • Zip [29.43MB]
        sha256: dbcc378927f56e5b2cb319523aaa5a249e3468c0326f4b32f2c5033837129aed
      • Debug Pack [24.91MB]
        sha256: 9652f2e618f7213d87062d920b45ff83e285919763bb78d3538010194d13cb9f
      • Development package (SDK to develop PHP extensions) [1.22MB]
        sha256: 543b943833dda271da428b751b122af4fce500f014cda67e7ff4e8003ab1276c

      VS16 x86 Non Thread Safe (2023-Dec-05 17:02:02)

      • Zip [26.38MB]
        sha256: caa1e3f546f1811c840551d95d5d4d8af9d2e1d96ec3ac3aa0d5bf809c17e22e
      • Debug Pack [24.95MB]
        sha256: 3812df67cb10511effde9f39509ff52cc10b24aa8fb1baf3f11fdca0a9836b85
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: eaf2c0f79a7c41c3192ef792a14a9cb1c3b00eeda0f736b49e9a0240d2ccdbad

      VS16 x86 Thread Safe (2023-Dec-05 17:01:00)

      • Zip [26.36MB]
        sha256: 32c303f4572671cc1a92881b69e4144ca479af7bacb2e18412e49650030e05c7
      • Debug Pack [24.61MB]
        sha256: 6980a0ac1f9a34b64fa0919360b7f392f69b324b131fdd297b90d4cafeb23101
      • Development package (SDK to develop PHP extensions) [1.22MB]
        sha256: f32cf2ad455e57d2cb60b9cbcb8555f6f902bff50ffd0fa313a679f5716ef0de

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