opcache_is_script_cached

Supported Versions: PHP 5 >= 5.5.11, PHP 7, PHP 8, PECL ZendOpcache >= 7.0.4
Tells whether a script is cached in OPCache
<?php opcache_is_script_cached(string $filename): bool