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 25.98MB
Download tests package (phpt) 15.95MB
Zip 31.92MB
03249b5c9414c6dbe30276f4a7598bd9d2a7417ee81f709b06b99e9c4a2aff4f
SPDX|CDX
Debug Pack 26.61MB
7e3372a796ba7cfab7cb6596f86bddbabfd5d6a73da3334b9cca16a479333aa0
Development package (SDK to develop PHP extensions) 1.24MB
390788375f5bf7851a4f245f80d2dae46c936a3fbed15774b8e8aa10fe9d8e9f
Zip 32.03MB
6df2a5f59f10f08022bede47a26d61c3c16756c54d86aad58503dc8a9d3c25ad
SPDX|CDX
Debug Pack 26.48MB
13d5560691e8c27ecad5a10e0e327e9d7e0fa734c23b3c6da7701e50a24a0779
Development package (SDK to develop PHP extensions) 1.24MB
50c921306ba19e97b6f11a37e30c203385d94de3b0802610abdb2c69a0435593
Zip 28.8MB
b957d4105c6baec1cb75653465f84b894dedc001531695dde8aacfed5d4fefc1
SPDX|CDX
Debug Pack 26.76MB
348e635cb54e6390f7c05d4f68dc6be3d0115f9c57bd0121302e90f5864dd63c
Development package (SDK to develop PHP extensions) 1.24MB
efbed7eae79bd514b4a7781fc2f33668c40527ef24203e939f1c1401e722a9a8
Zip 28.78MB
e37e7daf7ffe68df06bfccecf2950a6afc1a827e2b74cfaaa36ebe1574344cbd
SPDX|CDX
Debug Pack 26.44MB
8d98bc5f2986b55419c846679eac8feccbc2ece974a3b565613f9f9bc0e8cda6
Development package (SDK to develop PHP extensions) 1.24MB
0c70bf53c9d3e5cddb5885e84d49fdf0172b4cda10b95390de16a2bd16c2f970