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 31.87MB
Download tests package (phpt) 18.1MB
Zip 34.26MB Debug Pack 40.3MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 2ff43fea9a243085493b48c7c47152c0678cff0b05c61a3b4f4b43ba22de212c
sha256: ed445ded29e7944ebde1dba311074dd3e3f4e79c8bcafd26dc484bc6b52c9c38
sha256: 610b88ca83764d1ddb216b898ac14d320cb12e946a15c46af7dbc756684da4c1
Zip 34.39MB Debug Pack 40.35MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 0e8a7a368de950408e1df5d34a5a9deb3817e434007f28f310e6674354ed8d06
sha256: 7e0e98a467c1f1213c7db5570343229813670734737986f282a88387d5fe2fd2
sha256: e59d547f68d42b08051f597d63df27781dc39b92163439b1267f5a7d753f64e4
Zip 30.72MB Debug Pack 40.82MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: c145dbd642503ea79985d7b84e320604b38da7b3cb36dc410a1614843709328a
sha256: af69aecf5f6473a66d493f08302a568c67d881e282ce770222ca39c6e8fdde00
sha256: 396196fc3242ec6ae1017591fd6872cb90777854150b2b654b708bc61cd15f7d
Zip 30.77MB Debug Pack 40.87MB Development package (SDK to develop PHP extensions) 1.66MB
sha256: 367e2c8d5ee0288dc2741f71ef715ccf04a5ec78d82cc1d792d58ef9c0a9eea6
sha256: 8006deddd02db5257986ba3a7ffc5f96aea958d342e3861afefee074c455bb5d
sha256: 696cc59004a42a2afa2290175bb59f0761485dc49149d3df1097291f7d4d7c4f