To install PHP on Windows, first make sure your version of Windows is compatible with PHP. All versions released after Windows 2008 or Windows Vista offer basic compatibility with PHP 7.2.0+.
On Windows, you need the option to process C code. To configure this, download Visual C Runtime Or C Runtime (CRT). You also need an adapted version of Visual Studio. For most popular PHP versions, Microsoft Visual C++ Redistributable for Visual Studio 2019 is an adequate choice.