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.64MB
Download tests package (phpt) 17.49MB
Zip 32.73MB Debug Pack 38.87MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: bac1a970a676e8d875d5d39fc5ff388f231fadb9fb051b77b17db06a657673df
sha256: 89ec240f04d5ce4af58c399265c4dff43e7129edd423a3a0d438e8d34a321a38
sha256: cdda7b810ad26addc86d185fbb31ad309674bf5f89f249f8b793881b2d516355
Zip 32.89MB Debug Pack 38.88MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 11f211a3a657962071f967f7e8f2dc1cfc379168093f6bc1d3cd0071eb47e178
sha256: b6644482e9afc909db95d10abaec18c46bc4f93e091a7c5db2e2ec7c3650f3d5
sha256: 4be941c7dc642d956ee90171562a15ddf93b9a730feb6d13a7daf2bb959c2953
Zip 29.43MB Debug Pack 39.56MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: cf202f45dcf7776d8ab2aafe3dd518bb0b3b5d8ccd2d84a9049aa0c5e7af8b66
sha256: b1c276fabcd3f6f06c6e5e416fb97b0e3cbedaf262419e6940007d0e9c954909
sha256: fbf003ba42a17790b2580a7086d4b1a841d05cfbe60bed367abb3cba4ee3743d
Zip 29.55MB Debug Pack 39.8MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 8356c87d3f2bb6d96f82f599b4f12788407209dd564c9c5abd073b43715e0199
sha256: 7f3451666f50df9e63d63be5f1b9aafcc1da4392a44983c5c54909e2aa4def0d
sha256: 94420ed0320f67cd1149c8e604785a90a0e779976846d3cba3e765eb68ccccca