Looks like the installer can't verify the hash to ensure the downloaded file matches that hosted on the website. I'd recommend you to just install PHP manually, the configuration is very easy.
- Go to https://windows.php.net/download/ and download the 64 bit NTS (non thread-safe, this is important) version.
- Extract the contents of the .zip file to C:\PHP or any other directory of your choice.
- Add this directory to your PATH (under windows' system environment variables).
- Open a cmd and check if "php -v" displays the correct version you downloaded.
- Go to https://xdebug.org/download.php and download the 64 bit version that is NOT postfixed with "TS". PHP 7.3 VC15 (64 bit) (SHA256: 1f7e6bcd64d7fdfdd46c6b79830c76b577c506ec84455b91537c6b9f462457e2) for example, if you installed php 7.3
- Move the downloaded file to C:\PHP\ext and rename it to "php_xdebug.dll"
- Open C:\PHP\php.ini with Notepad++ or another application that allows you to edit in Administrative mode.
- Append the following lines to it:
zend_extension = "C:\PHP\ext\php_xdebug.dll"
xdebug.remote_enable = 1
xdebug.remote_host = localhost
; this is default
xdebug.remote_port = 9000
; this is default
xdebug.remote_handler = dbgp
; enable it if you want to use the profiler, I'd recommed to disable it (performance)
; and use blackfire instead if you want to profile.
xdebug.profiler_enable = 0
; not strictly necessary, but recommended so other IDE's don't attempt to connect too
xdebug.ide_key = vs-php
- Open Visual Studio, if you're asked if you want to install php, select no.
Tools -> Options -> PHP Tools -> Interpreter choose "Register new php path" (unless you can already see it), use C:\PHP\php.exe
- (Optional) Right below that, Visual Studio might tell you to fix some settings in your xdebug configuration. Not necessary, but you can do that. It should automatically see that xdebug is installed and enabled.
- (Optional) Visit https://getcomposer.org/download/ and install it using the preconfigured .exe for windows.
And you're good to go with the php version of your choice.
If you actually want to use IIS as a webserver, the php installation will be a bit different, using Microsofts Web Platform Installer. Have fun with that though, it's buggy as hell and what I wound up doing was simply installing php manually and adjusting the installations and path's to work for IIS...