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 26.14MB
Download tests package (phpt) 16.1MB
Zip 32.22MB
ebe75134c03869826cb1714d31fd5eb96afefa6d9fd35d786971c03020e7bce2
SPDX|CDX
Debug Pack 27.51MB
f0d0acf56a4b5cc05786708744855437a51df493f2f0c1ad29c8b78f30d32f01
Development package (SDK to develop PHP extensions) 1.24MB
1b17eb07706359d7adacedbe21113960526a39fb7a6ccb17084e66e8b4c08895
Zip 32.33MB
811d13185e401ef6ec286b21a58dc004ab6d4e04494923d88add19551faa1117
SPDX|CDX
Debug Pack 27.51MB
45a5a40159f6533d2b64a044e0468f56c4e8bf10b1b6565de6132ed1942aebb4
Development package (SDK to develop PHP extensions) 1.25MB
ca5d201b6dfcc010a6d204ecc7c5d7360d5ec6bcc98ff560aeede204c305bed3
Zip 29.09MB
2e45d8a53405ba9e5fe0c95a231fcc6df06787a6ce80e8d49dc538fd670accf9
SPDX|CDX
Debug Pack 27.93MB
cbcbd7bf9549cf1ace430d404dcbcfda69665b4ff77aa59f8cffa8774743d213
Development package (SDK to develop PHP extensions) 1.24MB
2dd38a4e89a9d69d85af56426ebf1aabcf9248767c643b5335861b163a4ef6fd
Zip 29.04MB
5890d04958e72e604edf5ae8bd51012f3392d1914239ecacc3c695d656f15707
SPDX|CDX
Debug Pack 27.48MB
e936ab0871e154d2f632a80c3e29b100c4e3281c4bf4e8d70a330c7758240f6b
Development package (SDK to develop PHP extensions) 1.25MB
a8bd0d507608ba368bab49844c95fea276411b06905eda45d64a275c7133ccd2