What is the maximum execution time for PHP scripts? KB Team Updated November 22, 2020 22:51 The maximum execution time of PHP scripts in shared hosting is: 120 seconds. Related articles How to bypass the error "Timeout" when executing a PHP script? How to enable PHP functions like exec(), proc_open() and system()? How to create an email account in cPanel? How to change PHP version, settings and extensions from cPanel? How to configure SMTP authentication in PHP?