Magento supports PHP 8.1.0 or later. Please read
Magento System Requirements
.