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 26.75MB
Download tests package (phpt) 16.7MB
Zip 32.2MB Debug Pack 31.18MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: 389c1327d325f6b6b3b892a5b2e1484ca5b5df775b6c4ddf5d1b5dc3b34ac761
sha256: 02209ffcb1bbe7c55c84605b13fcc69f400602a0660ad5a7f6d3523e505227cf
sha256: ff596d5061afea9017d861be3d16a78fb5b838d7077d40309e5624b3ba0e295a
Zip 32.34MB Debug Pack 31.22MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: d223892e2ea4b4bfbef06391bd0937c1a52a8ec66b16732d61f26189b124a887
sha256: f517cabce829015d64eb499cb560e73a523ea27c35ce7aa21d4ec12ad7648fea
sha256: d370049affe0a0da16adf173e6b49e37949768411428d572f4b7a4e519cf4421
Zip 29MB Debug Pack 31.61MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: c49a3d1d5daeb8ea32c48bbc2b0533ebb8cf54d8273b9a3b83323e1e55e15480
sha256: 956935ea0d86b6e6c371b60797b23d7d262ba8a44aeab0850f49df84fe5fbc4d
sha256: 9de07d2735a742147fe195ea2966876732aa77b2bfdbc8425a671a9f061c380f
Zip 28.98MB Debug Pack 31.14MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: f9e0d9745fd81f5edb12f11896de9f4afaa291acb3638107513cb9fc69b25d9e
sha256: 89e5193a918cb7cb9b97f2b7c70556fb321237cf0602e71c32db09b0b3d27565
sha256: 02ba816a275328a838b072217c8aba9d6726d857ea1d31235c517bdfe8c8ee6a