In order to install PHP CLI on Windows, you must download it free of charge from the following address:
https://windows.php.net/download/
You should download the VS16 x64 Non Thread Safe ZIP file of PHP 8.3 version .
When the download completes, unzip the file in the root directory of your C: drive, in a folder named PHP.
Then, download XDEBUG free of charge from the following address:
https://xdebug.org/download/historical
You should download the PHP 8.3 VS16 (64 bit) Windows binary version.
When the download completes, move the DLL file in the “C:\PHP\ext” folder and rename it to “php_xdebug.dll”
Then, rename the file “C:\PHP\php.ini-development” to “C:\PHP\php.ini”
Notice: Please note that the part “.ini-development” is the file extension of the file. If file extensions are not shown in your Windows environment, you should first enable the corresponding option and then rename the file to “PHP.ini”
Edit the file “C:\PHP\php.ini” with a text editor (such as Notepad) and add the following at the end of the file.
[XDebug] zend_extension = "C:\php\ext\php_xdebug.dll"
Save and close the file.