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


      Archives

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

    • Binaries and sources Releases



      Past releases

      PHP 8.3 (8.3.0)

      Download source code [26.95MB]

      Download tests package (phpt) [16.21MB]

      VS16 x64 Non Thread Safe (2023-Nov-21 18:07:30)

      • Zip [30.64MB]
        sha256: a051bb3332e7516769e62dd00ed5c2c53c89bceaf1cac15ffba0115d26b1952b
      • Debug Pack [25.64MB]
        sha256: 22f17a6172e3112f57483c77829add9cab9e56a299ecaada8b8e402cfea9f832
      • Development package (SDK to develop PHP extensions) [1.25MB]
        sha256: 5578a0df9cc92ac305576bba00ae9f4d2d0b6c3225a3b1ebe86c45cb94e9196f

      VS16 x64 Thread Safe (2023-Nov-21 18:07:46)

      • Zip [30.78MB]
        sha256: f606eb650a002a89a95c41b431cf2b4c6778797037f5691f92f79f2fa3a5abfb
      • Debug Pack [25.58MB]
        sha256: 0418eb46d266e78fd14cbb1c2fe6743fb712956cbd9c82c1f7bb06a94033de08
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 27e0cdc165e9f30d4a41668d6e05f8153c7054a548ccd91c66c7aa6667ad6cb3

      VS16 x86 Non Thread Safe (2023-Nov-21 18:06:14)

      • Zip [27.52MB]
        sha256: 6455669786a4adadce228bc3ebcd7104150879cd1b703fa053045bcf0258d9c4
      • Debug Pack [25.74MB]
        sha256: 71fdf5943ab45936dffe101dcacc0e41ccab04adbbb9e61d4f0246ad775cda6d
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: c118ebaf3ca03dc5f3f7d8a1df9065f37ed663950c5e3ae34e6fae556f632027

      VS16 x86 Thread Safe (2023-Nov-21 17:18:22)

      • Zip [27.49MB]
        sha256: b2b8dfbf53d0df834923b78f378c07808c63a265858ee027160715ed8b3d9a37
      • Debug Pack [25.42MB]
        sha256: fb2d7956cfac3f4d045f5496f2580b2dd2cb9521b0258b9780eb49fdf0b109e9
      • Development package (SDK to develop PHP extensions) [1.26MB]
        sha256: 5b42075951eeb6cf3774d02ee010f638f2809795caefe564fe6769cf5f8ac2e7

      PHP 8.2 (8.2.13)

      Download source code [26.21MB]

      Download tests package (phpt) [15.65MB]

      VS16 x64 Non Thread Safe (2023-Nov-21 16:27:32)

      • Zip [30.28MB]
        sha256: afa38d2f67ba6bab927b9a4a922a24f044d6f35f12e0df1b9d651d9ae6c8be50
      • Debug Pack [25.47MB]
        sha256: d061b4b21f7855460879f70e537d41de8f5daf4711fdcbd35ca165837a2a396e
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 8a755abf001702fbb12628011ee6929712c549b73ecb5ea53cd2f743890a8322

      VS16 x64 Thread Safe (2023-Nov-21 16:29:34)

      • Zip [30.39MB]
        sha256: f96a1010ca98203384d964ebff56410b62301c7cb333e060a3364536458b5ff6
      • Debug Pack [25.48MB]
        sha256: 3d22572bdf62599b526edc2c31aa0632d837ca8a94290a8f6461a89196b35acb
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 151c161eb86b07c9cd19106edfec9c34eebe265613b9800f347bdc8905a016db

      VS16 x86 Non Thread Safe (2023-Nov-21 16:28:40)

      • Zip [27.18MB]
        sha256: 57613020b326f447a54b1c2f63c89b029b0d2717a6d2849ed689a630ccf98474
      • Debug Pack [25.44MB]
        sha256: e40a92b6127ba00010a6479688352b69155a95fe4884292c26b666e3c3f44ef1
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: facbd39576889338edda18741ea2604fe051cb3f74f4296145cb9272aca8e1d0

      VS16 x86 Thread Safe (2023-Nov-21 16:27:06)

      • Zip [27.15MB]
        sha256: 7e619530cc0ea911d6cc9323716bd0f35f285f9de7074b2e311509ff3d12a37b
      • Debug Pack [25.13MB]
        sha256: 776bf860362e6bcf8a7df09cefbde02961bca6cdf7f28b27d7ad974b8af4fbd3
      • Development package (SDK to develop PHP extensions) [1.24MB]
        sha256: 6404a401e830c33450690fcb2e6eb60f4943eaf0e00e0ddc77145c9b56ac0097

      PHP 8.1 (8.1.26)

      Download source code [25.65MB]

      Download tests package (phpt) [15.36MB]

      VS16 x64 Non Thread Safe (2023-Nov-22 10:20:08)

      • Zip [29.33MB]
        sha256: 55d4399d4a178721d8ee78639240ef65a5816baa2a1f2ae8838b8aaf7230edd5
      • Debug Pack [24.95MB]
        sha256: 2b4401dcc438f1bbe73df860d70e8292f31b572fd952e90ce936dd678cf68efa
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 9c8d3763257111e009bbb9cee542a1cf29e5531668d8b0e45d74f55919cd2a3f

      VS16 x64 Thread Safe (2023-Nov-22 10:22:28)

      • Zip [29.43MB]
        sha256: 68d37bb268f45d193f6b4f1ca81bc496db8ab97fd87e8648369e167870fbafaa
      • Debug Pack [24.88MB]
        sha256: 8ab9eb5b7a7fc18c075c35154aff189ad97cd43f8ef78f126259a3b01126aab8
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: a9da72d59c292e66f27e20837ffa64c06daed2da1aaa3676a6924e1b691905f7

      VS16 x86 Non Thread Safe (2023-Nov-22 10:18:14)

      • Zip [26.38MB]
        sha256: dab7a0eaa42ab845e60f7580f45ef0a53c67c0e390974342f3c66c5615273c23
      • Debug Pack [24.89MB]
        sha256: a12f1ab2f813b1fbfb3ca6f63b1dc358f0afce7ceb22b341b3a01b95339601b2
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 92e4ec3da9ee4f10e77a10d50a162c17cb99f7b9019d0fe139aea39dda673d24

      VS16 x86 Thread Safe (2023-Nov-22 10:17:06)

      • Zip [26.36MB]
        sha256: c9e575de6db575a0451f8505d55ef98d522681dfb29f1ee9c63838993c20a0e8
      • Debug Pack [24.5MB]
        sha256: 002c9f5d665d0574ff4c3e326a0e498007299c9a4e23dffea6b6487cc4c339ae
      • Development package (SDK to develop PHP extensions) [1.21MB]
        sha256: 6dacf75166272dc393a6129768daaa0dac2d5a8f61bacf448bf0ee9e56079b74

      PHP 8.0 (8.0.30)

      Download source code [23.48MB]

      Download tests package (phpt) [13.56MB]

      VS16 x64 Non Thread Safe (2023-Sep-01 18:07:28)

      • Zip [25.53MB]
        sha256: dfb70498ffa2c617f2f655a155564697e3c9cca41709938fd1a5997d1d5b0785
      • Debug Pack [23.21MB]
        sha256: 6d54cc8d92a65c8a6bdd61591badd6a15c921271245402691591500230416aae
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: 85e9eafbdf7a18acb646eaa0abee33204151297fba95392976f38c49c0a91524

      VS16 x64 Thread Safe (2023-Sep-01 14:57:52)

      • Zip [25.63MB]
        sha256: 8697972b5f704885e3444422ede2b5c25d025f614ea96dc67de74dc582471562
      • Debug Pack [23.23MB]
        sha256: 8d872df1ff623b64b5152451c2e86de58c9aebf2131db7cee6496b1527027e73
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: d15960def77f340b868767840fc5406b5a86822e634df7e96c130f91bc28499a

      VS16 x86 Non Thread Safe (2023-Sep-01 14:38:10)

      • Zip [23.65MB]
        sha256: b649889ac73add91c02ec7f6fdb9182f148cfa3181761e32a1be02a3b1d85100
      • Debug Pack [23.86MB]
        sha256: bdc62ed306636b42857a2c6fb9685663a389b0a83c88a1cf6c19b201444ff19b
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: a7dba1b187b06371a1f6e4f2eeddf6c938c286ce6eb70ee52393eadb2d8c9277

      VS16 x86 Thread Safe (2023-Sep-01 14:36:42)

      • Zip [23.64MB]
        sha256: 8dec05f39e6618ee20e252b180d69f8cd0162a3dd2545321593d8f4f44f4af52
      • Debug Pack [23.52MB]
        sha256: 3de68c50c6dc674993860cd6a05f56b20e0c11e909af5c71ffcb9f48010a120b
      • Development package (SDK to develop PHP extensions) [1.16MB]
        sha256: d84e35170de73cf5e0240b81fb38bb1af461b508e7f1ec0aec4686351249b672

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