How do hosting providers typically handle PHP version updates, and what factors may influence their decision to stick with older versions?

Hosting providers typically handle PHP version updates by offering a range of PHP versions for customers to choose from. They may delay updating to newer versions due to compatibility issues with existing websites or plugins, security concerns, or the need for additional testing. Customers can usually select their desired PHP version through the hosting control panel.

// Example code snippet to specify PHP version in .htaccess file
AddHandler application/x-httpd-php74 .php