PHP For Windows: Binaries and sources Releases

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

    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:

    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.

  • PHP 8.5 (8.5.1)

    Download source code [31.59MB]

    Download tests package (phpt) [18MB]

    VS17 x64 Non Thread Safe (2025-Dec-17 17:15:40)

    VS17 x64 Thread Safe (2025-Dec-17 17:15:55)

    VS17 x86 Non Thread Safe (2025-Dec-17 17:15:47)

    VS17 x86 Thread Safe (2025-Dec-17 17:16:04)

    PHP 8.4 (8.4.16)

    Download source code [29.78MB]

    Download tests package (phpt) [17.44MB]

    VS17 x64 Non Thread Safe (2025-Dec-17 14:53:56)

    VS17 x64 Thread Safe (2025-Dec-17 14:54:13)

    VS17 x86 Non Thread Safe (2025-Dec-17 14:54:05)

    VS17 x86 Thread Safe (2025-Dec-17 14:54:19)

    PHP 8.3 (8.3.29)

    Download source code [27.53MB]

    Download tests package (phpt) [16.7MB]

    VS16 x64 Non Thread Safe (2025-Dec-17 13:50:25)

    VS16 x64 Thread Safe (2025-Dec-17 13:50:40)

    VS16 x86 Non Thread Safe (2025-Dec-17 13:50:32)

    VS16 x86 Thread Safe (2025-Dec-17 13:50:49)

    PHP 8.2 (8.2.30)

    Download source code [26.53MB]

    Download tests package (phpt) [15.89MB]

    VS16 x64 Non Thread Safe (2025-Dec-17 12:07:08)

    VS16 x64 Thread Safe (2025-Dec-17 12:06:52)

    VS16 x86 Non Thread Safe (2025-Dec-17 12:07:00)

    VS16 x86 Thread Safe (2025-Dec-17 12:06:33)

    PHP 8.1 (8.1.34)

    Download source code [25.75MB]

    Download tests package (phpt) [15.44MB]

    VS16 x64 Non Thread Safe (2025-Dec-17 12:58:38)

    VS16 x64 Thread Safe (2025-Dec-17 12:58:54)

    VS16 x86 Non Thread Safe (2025-Dec-17 12:58:46)

    VS16 x86 Thread Safe (2025-Dec-17 12:59:01)