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.92MB
Download tests package (phpt) 15.89MB
Zip 31.9MB
d0bd189522fa50255ee94ed4b340ed4330f5ae33a90a74205275b0f0b221d388
SPDX|CDX
Debug Pack 26.15MB
3af565b068310231d37f3670fa741e32cfc238ad3a18acb37067a9470e1f049a
Development package (SDK to develop PHP extensions) 1.24MB
d4d0da6e6f1ad3f9e058262261fc43d7fa329b212207e4bfb2a39ad0b39ee891
Zip 32.01MB
7d2568dfaad6ac1391e57994f52c8aed835baf9e6d89f4328770e2843311291c
SPDX|CDX
Debug Pack 26.22MB
dc801832634f3dd84ace7092bb88ce157bffe4bc0743542eaef1f272ed5e70b0
Development package (SDK to develop PHP extensions) 1.24MB
46c00fc49b8cf6c35a4a8b5269114b1da90ef3a001f5ee1cd577f7c12ab6aad9
Zip 28.78MB
8732dac6084bcad5e8fc363efcd9bdc50afbfc469bc858eeee92da05bd21d8cc
SPDX|CDX
Debug Pack 26.53MB
1c3caf9fa33dfa14a3cfb0629a18072100561d6fb680c0c1fcc29197e0b0361c
Development package (SDK to develop PHP extensions) 1.24MB
5544c533374fc0acb211f30971e1da034e0b77d1284abeff484e00bf6c6777a3
Zip 28.76MB
329eb8d71b6d186e8b01d500a14021eb7d430e0fdd83f69802beefd31150bf18
SPDX|CDX
Debug Pack 26.17MB
49ff0c3812dd2e36480abdd8ddaea905091e029a9d43e046486dd32cab2e5009
Development package (SDK to develop PHP extensions) 1.24MB
9de2041263c9e10096423a89b17bdc6d4d15e44a8d2b86a08dd20236f9f4ac9d