Hello,
in fact, the script uses set_time_limit() function to try to increase the execution time, but in some PHP configurations this command is not allowed and has no effect, unfortunately.
That's why it's required to change max_execution_time in php.ini or execute sitemap generator from the shell command line instead of browser-based execution.