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.71MB
Download tests package (phpt) 17.51MB
Zip 33.16MB Debug Pack 39.08MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: 2cb57d0d3a17b1248c6a53b600719d4b051e1c374373404d5031409c0725031d
sha256: 55df4d98b63a47150aa2f7b3a4ee2f6a9e528dbb29edae63e19476e02fc04be0
sha256: 9e8987e555089df31bb79452fa4729ab93fb8433269b14ca194ddd891b0512d7
Zip 33.31MB Debug Pack 39.29MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 9e2f6e455d3f42993f09deed23ad0178b3787090c924793e50414b6a92de186a
sha256: ee10f63e5d327022ce027fdfd495f2819a56b5a571bad783bb9924db94f84604
sha256: 70e4d2566cfbaf2f627e7e9c8c55eda4ada66ad2af47f68c0e7964654f645d96
Zip 29.88MB Debug Pack 40.08MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: 99c9827d01480147e735e443e2ffe6f1974af053e521f63a46d1a498d2a45d13
sha256: c948abbef7588bd5ae50ada25666e64d80d8186d26fc3871fc2cc1a315648d1d
sha256: 0c8fb7a648175e64ceba33525e1bcd0a49f44dce4cbcc864399b15e19ae1c5f2
Zip 29.9MB Debug Pack 39.95MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 83a472c6ecc3c6a5c607e1b96a307f19daa6c1745eb6cc6ebb601db4cd49f514
sha256: 2e462b08077bd993926fb7670bdbf4d9bcff66ceff8f51a3790e20b57d107cf0
sha256: aa734f398b2ebb02cdf368467dbaaad49d93cc31ed01338bf62c98a07df42e14