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 31.86MB
Download tests package (phpt) 18.09MB
Zip 34.22MB Debug Pack 40.02MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: e25cc9400a7d176f18074f677ef0159d6b04aecfb255c924d808b7144075092f
sha256: 5cd6ceeed761fa8777bdf388495d825f0ed4730413b76f399ab767560766bbc9
sha256: 76a0b377bfe0ed3e2518c406e5b1038d346e323da3eaf337615ec11bc3bd3113
Zip 34.35MB Debug Pack 40.13MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 38c20264dcfb098cbec3b2b25bc21312e436b87dceadc76725aa1d7cf80be1fc
sha256: 1c51f55ee1a8c4027b95081ec25225e4dca0a3b9af52538c128c5ec3211d19c5
sha256: e220b9838f84b9fa9149ca7cd73c87ae88fe2a460cb0de782c58f43ead57f80e
Zip 30.72MB Debug Pack 40.68MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 8f56f338afc366164bb675b0f6206db5dabcdd608c5fd176ff874aca78e9a056
sha256: 61bcbf5564b9bc1a415a7c91b7d8008ec4a433ae7e09fc0bc13b756f22b0ddfe
sha256: 56bf71b28cb076fb2fa21e1a6fabacf05edef018803a6c52f5b30610cf4e3923
Zip 30.77MB Debug Pack 40.68MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: eac6c970e692cd6019d66d56ccff67cd845130a8fc831daeedb2b25c1cb1f71d
sha256: 35341def1297a2370e3703e20b883f49d99c3e18ccc6957f7815ee908a9ab90d
sha256: 01d0a444ab4215d438e779d9330d665f63fc05a3fd7082b210f465df37e886a9