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.87MB
Download tests package (phpt) 17.53MB
Zip 33.07MB Debug Pack 39.09MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: 826efa189b21f46314ad497ff31467de9f0953292f42b235542be4feea182b48
sha256: ea45c46f382f809a072972b0c061a52019445f444c30d70bf23172166cd9b20c
sha256: 9ea688d62c8df072a5fca472216476efa7e140eeb2624731be5d2b02e7b30c39
Zip 33.23MB Debug Pack 39.23MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: 6cb93c23c5e87237881f2b3d8b93fdd70ff04a4a32bc16c9cf846aeb17f518dc
sha256: cc115c01d98a3e2b46f94a93efb380f782a9ff5da87735a09c89c7e9f19456ab
sha256: f2774e1534586769b90ad5550d4c1658f522bcca8d711a231d5d19abeaa7d25b
Zip 29.82MB Debug Pack 39.85MB Development package (SDK to develop PHP extensions) 1.35MB
sha256: 3369dcc975b6e1b0241999374b7b34debb7157fbd4b4ad278c66e699ab559069
sha256: bee26ec7e6dbea091abe21916dc1e5f5500165e0be58599b186ec41e20c41f1b
sha256: 7272a4e5a43244c066df86c5d10010f21b764b933751383ae41c179bdaa5ad6e
Zip 29.84MB Debug Pack 39.84MB Development package (SDK to develop PHP extensions) 1.36MB
sha256: e7fa00b45d2c3cf32fb27214d744673e98af35def342742b104c683dda095799
sha256: dd2abfa04a88a453e04594a41e6c03ccfbf4c1ec6baa3709a8e886cb6e487b3a
sha256: 429132b01b65f2b6f1863ee1fb2b56b9cc5a4eab66099f9d81528c7b5c1b0457