Set max_execution_time for view?
If you're looking for a custom-code centric path. Both D7 &amp; D8 provide a hook_views_pre_execute() hook. It will trigger prior to any view query execution.

You can hook into this function, inspect $view object for the particular view you're wanting to extend your PHP execution, then call the PHP function of your choice.