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 28MB
Download tests package (phpt) 28MB
Zip 32.52MB
3c9242622c7402b47c38d2ec2ed779cef3a290fd6f2bde6c35f9c482699e7900
SPDX|CDX
Debug Pack 31.02MB
fb440abefce2ba87119dce55f7c4d6f3f709765624dd5e1c3b1365af1605b983
Development package (SDK to develop PHP extensions) 1.26MB
bd6fe45ad046f5f700f7d2a2ebf93ab2c73a86d8f83dba5e38d8d62ac9ae31a1
Zip 32.67MB
0606810ff8fc232406aaab677b760e06af93a63a366d33ff738d4ce90501dfa5
SPDX|CDX
Debug Pack 31.05MB
f7414092bd4b71e28baf9f3a8c1ecfd9060874f86f16e7ae3c56cfccbad714d3
Development package (SDK to develop PHP extensions) 1.26MB
6d4b58f6baf0e72e3d13fc5d613a01ef6af0a85864df5033c236bbd515668fb5
Zip 29.38MB
82f96158e0dee165ceb86e1f0b6bfe8ec57b4ca2e25a49b2b6c4220e82b2ea88
SPDX|CDX
Debug Pack 31.62MB
47030def9f4db51c7c3a45599aa7bbd32079d80b9ad7fb61c5476bcfa6aa51be
Development package (SDK to develop PHP extensions) 1.26MB
fb7f20033eecd03f7bf7239b3b0b69159d9960bdf7ab28c4b253f383bdc76b79
Zip 29.34MB
8b25d48eed1717012d327246558802145861aad538c0e52663fcab907dc6854b
SPDX|CDX
Debug Pack 31.2MB
b2c5599b9d4cf3447c3a84c05581dc9fd474c849529e7cf22a992d3905ae4ce8
Development package (SDK to develop PHP extensions) 1.26MB
0e1b5daea1030c58159b24fc13f6fbaaeb0fc823ced5ab94d50ba2dd72cf5626