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 25.8MB
Download tests package (phpt) 15.88MB
Zip 31.81MB Debug Pack 26.38MB Development package (SDK to develop PHP extensions) 1.24MB
sha256: 941bd3b87683eb16d5ffa7f5997de9a5e07ef08ba875048e5c4d95b4fc778162
sha256: dcef4e78b45522aa5ecf851a47435db0b57aa51345e29681e723e355e6576f4c
sha256: 1a24da55c740541b11f694c1ca9c00bfe6e8c4e22ebb729d8d50ff63e9da0683
Zip 31.92MB Debug Pack 26.45MB Development package (SDK to develop PHP extensions) 1.24MB
sha256: b0c2883017316528cc927f49fd31750baab3b52523c301644454c2f89c4b3de1
sha256: 47ddba47fdc75632faac8e8db000c14b4ac77df08fe4485e81ec6da0bab6eb1c
sha256: c6f2238ad50d297cafc6b7ebeaafba9c908b616cd7121a77484870fe53682a8c
Zip 28.64MB Debug Pack 26.82MB Development package (SDK to develop PHP extensions) 1.24MB
sha256: 7e12f0da52d709f6d15d6acb90a0b7d50132abf3fec5fb90e879a5243c204e33
sha256: cee925f80a1c4e627768d1979d2d61b5dc70e1e6814c25e39e0ff4860d77f3a6
sha256: 9ae133bec63a05f9b50029d35b0c234866c29c066f81dba4012c0c9ad4096af1
Zip 28.62MB Debug Pack 26.47MB Development package (SDK to develop PHP extensions) 1.24MB
sha256: 136d39b91c904d111c7f921da044cecfa71cde4ee53609f1fbf1e08d9633b69e
sha256: 98358491d24fc89dc568f3de4fabf8ff09f0833518e3ccef2f5df44df746e6cf
sha256: 765d44c52e552cacc8cd63500f0fa97af4e1f3a9f9b48721d74bd3625af5ffac