PHP 7.4+ provides a php script preloading function with the opcache.preload directive.
It requires a file, preload.php is commonly used, to provide a list of the php files to preload.
From https://www.php.net/manual/en/opcache.preloading.php ...
"PHP can be configured to preload scripts into...