Highly suggest installing winget from the Windows Store (Called "App Installer" there) and using `winget install php` from the terminal. Easiest way in my opinionHighly suggest installing winget from the Windows Store (Called "App Installer" there) and using `winget install php` from the terminal. Easiest way in my opinionI had success installing PHP on windows with chocolatey, the package manager for windows. As of this comment, the version choco provided was 8.2.7, which is the latest.
One command from an elevated powershell: 'choco install php'
https://community.chocolatey.org/packages/phpInstall using Windows Terminal (or PowerShell):
> winget install xampp