I 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/php