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.87MB
Download tests package (phpt) 16.7MB
Zip 32.08MB Debug Pack 30.93MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: 67c724e7b675b50d8f0476d816c3e2a3064ce3a53d572575d63c321cc0a3a6cf
sha256: 66117404bf4470c86bd354197705c75e41d84d85c2f6cf687dae9f39c9edeaa3
sha256: 3f79b567ac4369606298bcf19e7f8d8b2cc971e704aac81a7617044a349f033f
Zip 32.22MB Debug Pack 31.02MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: 76fe1eafda6dcc8927122adb79088b22e19cfbf81c3dbed44ccb335d1bf8de29
sha256: 2c2520c26be5dd86dc418a5442c4cea6bab4942d5b4286513e3b8bccf218c256
sha256: d03045cef320cacad811725f66cf02c479b6aabc5fd5c8264f2b470e88c09e64
Zip 28.93MB Debug Pack 31.26MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: f4053d542dda43b4e684be03d87f1b61bf8ccfe5a5ae9ad72ea59b4015234ea8
sha256: ad5c927700bdf072c58d6f5e674b703758edec5b33e4c0c3d51997b3ebc5c955
sha256: 37aa56949072d6a0b1fa9609574e5e9218a2783f2afec099b19de260a864e22c
Zip 28.91MB Debug Pack 30.87MB Development package (SDK to develop PHP extensions) 1.26MB
sha256: fc3033f013636fa6b8d274d6e68e5a1704a155d64faa91c55b484883fdc6b071
sha256: de9f6b0256bbdaa8cb10f8e8b7cb5a5aad6273d8d28f722034e74806afc65c87
sha256: 2a8dd08318f8880c749b9a117be6b4febba1023f26c8162c2475af93705ee0a8