Till date, Magento has not released any stable/compatible release that can run on PHP 8.0 but if developer wants to give a try using following way to setup Magento in environment.
For this Magento has created separate branch based on Magento 2.4.1 on their github account.
You can setup project by following steps:
1. create folder named m2-php8
2. cd C:\xampp\htdocs\m2-php8
3. git clone --single-branch --branch php-develop https://github.com/magento/magento2/tree/php8-develop .
4. you can run setup commands as usual
NOTE: You can not use this code in production as this branch(php8-develop) is still under DEVELOPMENT.