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.72MB
Download tests package (phpt) 17.52MB
Zip 33.2MB Debug Pack 39.44MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: f661da9a4a6b7992a8e801ec7441ee22a2b5a6cd0ff178559a81427c9803f45a
sha256: 17cbf9fe054d87a000f013b00b3ddf0b27dd65a31612d169486f4a3d4823203f
sha256: d51f70d9a7ae169d64046abcaa795859ea870129317634156cb55690557f2cd3
Zip 33.35MB Debug Pack 39.34MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: dd7a716bbac734cc7f2f9a9d86aa678e2ae6f83a612b0a8ab1ac186b494d619f
sha256: 0f067be707389f94327f6aba14e905a84f5e34ae694250e939d83d1ac2e740d2
sha256: 1c3f424c0327c8709aff9e91eed955b66d235741a81555dae8521e5be2e7758f
Zip 29.92MB Debug Pack 40.25MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: 2fd73580517832e8d8a51f010493949a07fe587bf29e2a2ec039992e68c92bd8
sha256: 9ee53065ee50efda9f8cd1a1f912a4b428144452c5ed5f10ac9680ad60731a2a
sha256: 41259a78c0bf474282ca88f0c90af16937aa2807903b72b49c3997e86a338f68
Zip 29.94MB Debug Pack 40.25MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 74561072e537fc7dd8b8c98eee74e9348aa7534c2797c98fd7476a21f98595e2
sha256: 960e0f09709de684adf452e621f3dacb4bf2806ff6a1120763d8e1369b4ab447
sha256: 4293082911c53455cb0ba1c970051478cfe23b6673600d9e0dfcee501890b92c