What role does PHP bytecode caching play in optimizing the performance of including large PHP files on a website?

When including large PHP files on a website, the performance can be optimized by using PHP bytecode caching. PHP bytecode caching stores compiled PHP scripts in memory, reducing the need to recompile the scripts on each request. This can significantly improve the loading time of pages that include large PHP files.

// Enable PHP bytecode caching using OPcache
if (extension_loaded('Zend OPcache')) {
    ini_set('opcache.enable', 1);
    ini_set('opcache.enable_cli', 1);
    ini_set('opcache.jit_buffer_size', '100M');
}