Drupal 10 requires PHP 8.1 or higher. Make sure your server meets this requirement before upgrading.