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 32.07MB
Download tests package (phpt) 18.11MB
Zip 34.14MB Debug Pack 39.94MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 63a3f6493f37c9ff3e288ec16621222a6cda5167dd1abffec0019e7f18c8e7e9
sha256: bc938edf71f1f950c1ac667d93ab6a51bd678177d96a69d9a06e561ad061fcd6
sha256: 03f4ca4e58ae9d6e3ee3fc02b393ac29327c1740e6794f033c6a1134fef47c14
Zip 34.27MB Debug Pack 40MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: a7323e50a1e29fddc278d9297ca9a4ec134bd1cca5396af39115284a125cab2f
sha256: 9a9a921babec76015166ad1114e960d2e6300c2a24a45aa447479dcdde542313
sha256: ca335c955311141ded17f08f4ba64c7cbd8b62728f8add0cf3406e137f09f564
Zip 30.62MB Debug Pack 40.41MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 421ee83fb2288c79c56d7488e0f658070f73b6ad072bacc6b3572bc8ccdf57f9
sha256: 972e36ab8ac647ee924e96610e23cb961f56813abf7484e4ecb18f35d0821f7b
sha256: 019c27082dabd57c57b24f763a42e241c2e74eb3411cd049a1c6b46d89c11485
Zip 30.67MB Debug Pack 40.47MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 86a01ec179c6aba884e72b8b399589b6aab7749ee6bf782adb8c335f7c756778
sha256: 49aa73cea2dc193f8753e3d0cc82fb92febd5031c6f11a1dfd6812f8ef73cac7
sha256: 146fd7c4ff5d5bea724333196bdd2db8789e77c12b0a97193642a89f16231c38