It is recommended to use x64 builds of PHP as almost all Windows installations currently support x64.
Thread SafetyNTS builds are for single-threaded use cases, typically PHP running via FastCGI or on the CLI. TS builds support multithreaded SAPIs and are intended for PHP loaded as a web server module. So, if you want to use PHP as FastCGI with IIS, use the Non-Thread Safe (NTS) builds of PHP, or if you want to use the Apache HTTP Server, use the Thread Safe (TS) builds of PHP.
Visual Studio VersionsThe builds below are built using Visual Studio 2019 (VS16) or Visual Studio 2022 (VS17) compiler. They require the Visual C++ Redistributable for Visual Studio 2015-2022 x64 or x86 installed.
Download source code 29.97MB
Download tests package (phpt) 17.63MB
Zip 33.46MB
43a8f67ed2e5223fafb21293c85976361808855405278cef2cf3037c3ae2529c
SPDX|CDX
Debug Pack 39.84MB
965a2a0245d16c12e88758ed42e877d7450ded51e52ff96a664a07a6a8d2dcec
Development package (SDK to develop PHP extensions) 1.35MB
55fd07f549c0494cfde2827dfe90ce128ff0359df7dbc76f7617ed1adcdefa48
Zip 33.49MB
2cf521fb6bcb45b634c7e9a7ab2afb6d41698b987bbc73c4975d90a065e0f16c
SPDX|CDX
Debug Pack 39.52MB
370089651b52d2f5dcb87823c1edf7604d9383a48491f938c94c52201e6069cb
Development package (SDK to develop PHP extensions) 1.36MB
75e4555ef32cb1524968f3019eb4567c06e89be13b1641148375fee99658b8b4
Zip 30.02MB
07ad87d7bf37798468c85a54b4c48189bd4f7561390432aad1502f6afb9cdbfe
SPDX|CDX
Debug Pack 40.2MB
257ce744757688c741f3774d224cbb2a53a81b7c5830ab42fe0f1d2a4299dc02
Development package (SDK to develop PHP extensions) 1.36MB
ec962b7d482d6200cdddf6d93bf2e7b1cfa1e059283898acdbf522f4bed98d79
Zip 30.09MB
92cb92b350cd513ee7aa5c32ce2aaa2e082fb04beaf7baa9b3703b7c0de32f0b
SPDX|CDX
Debug Pack 40.3MB
d0d6907845ac2d43eab8fdcfe0826bf0671878f9405fb8a69165486353afe0ec
Development package (SDK to develop PHP extensions) 1.36MB
47a7e61756094da425734718ee65332973ea71a4ac1c67f6376a3cc945858dbb