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.18MB
Download tests package (phpt) 31.18MB
Zip 33.66MB
93bd8a815a52156606fb906d0573437908c61f96e2cc52c03a51e36a41bf5236
SPDX|CDX
Debug Pack 40.73MB
9419e0d39c230092c05b25bf6fe399d0fe7edfee32d8d494f3c67178536eb81b
Development package (SDK to develop PHP extensions) 1.36MB
cb92542152797a8f2b28831d73a131f4b753e4987bfc26dbc589ec9482ca7b8c
Zip 33.82MB
7902fe891ff4b035d431fd429a2ec1df193ba1f6fedba425d861790465c64e6b
SPDX|CDX
Debug Pack 40.76MB
9c20e7e4f25125a74727f820b585e46734b28e7da44c0802fc8e5c9228082ac9
Development package (SDK to develop PHP extensions) 1.36MB
c419e9e2b6fcaadc96cc11214c237630c17695c135f1bb9c096f5bc1132a93a2
Zip 30.31MB
c9f9b497458540622f443751dc553fbbd6e2974a005bb17a08ccfdcca2994d0d
SPDX|CDX
Debug Pack 41.35MB
5b6fae3ae3e267ee5f9871053783ce23ae20352dba6264362532008fd3074580
Development package (SDK to develop PHP extensions) 1.36MB
6faaaa7cef2b5e201f6e394dc8777491c093d61dfa1a8bb6164f846543e5b424
Zip 30.39MB
b1f02421a1f92e65930cdf6d5819138cd4ceb120740ef05968387fe72a3c6bda
SPDX|CDX
Debug Pack 41.43MB
a8f88c1761865c9947719a7d32dda2216b31e172b71165f245e1c2aac6fb3d4c
Development package (SDK to develop PHP extensions) 1.36MB
61ba9b1b9a16bb45f0507fd0bf814db150af39aed2fcfec837baf0520bd0cf40