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 27.1MB
Download tests package (phpt) 16.92MB
Zip 32.6MB
1a097d52b7a68622cdc723073b61cc70caf79c941218ff65b2d8441dbc6b10d4
SPDX|CDX
Debug Pack 32.27MB
4e264fd807f4b4d2ad02fbc2ec1bc2291e7444c34cc89978a8bcf9fdfa8e03cb
Development package (SDK to develop PHP extensions) 1.26MB
c111e7d4fd9af7c34af3867b21122bcac87873f37abd73ee795e0db64a6cc38e
Zip 32.75MB
126dd3cc8c19df5085b9420b2bc74ed591de3d98528858c52fc42739b7bba92e
SPDX|CDX
Debug Pack 32.23MB
bc39ee83af46be86f205245670878da72157b05c6819f9616f0c4e7ba2ad20df
Development package (SDK to develop PHP extensions) 1.27MB
fc582f1d2cf616c25534f1255d7f3814ee8e1bba8617bf22822f343b234064c7
Zip 29.45MB
2dd0c25c136812d2b7fdca85cbdd442a28aee758bff938c973f644c1c9235b98
SPDX|CDX
Debug Pack 32.47MB
29a5c6c5d05b611d26e163d8e12c78843cb02eeda06ef1f99847d7958769eb4d
Development package (SDK to develop PHP extensions) 1.26MB
fc019584060a8be9d7ba6f429619e10f24e42c5440e7769fe644f4b0ba809a36
Zip 29.41MB
323013f7a07520f31efb9c6ee4ade7d878f3329c4eea1dd2a1f1b8f5b221b4aa
SPDX|CDX
Debug Pack 32.06MB
5955b344c6ffac36ebfd1fe570f24e59acc6d364726beba9a3ea6aef8cab5dc2
Development package (SDK to develop PHP extensions) 1.27MB
2c32d0d00100fc5f10ea996bf670926d8abb49563c5fa1a82739c3993c1c53e2