Following Laravel’s documentation I have found what I think is the best way to set up your local environment using a shell script to install everything quick and easy.
macOS
/bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.4)"
Windows (Powershell)
# Run as administrator...
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.4'))
Linux
/bin/bash -c "$(curl -fsSL https://php.new/install/linux/8.4)"