* Compiles and caches a PHP script without executing it * @link https://secure.php.net/manual/en/function.opcache-compile-file.php * @param string $filename The path to the PHP script to be compiled. * @return bool * Returns TRUE if the opcode cache for script was * invalidated or if there was nothing to invalidate, or FALSE if the opcode * cache is disabled. * @since 5.5 */ function opcache_compile_file(string $filename): bool {} /** * (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )
* Invalidates a cached script * @link https://secure.php.net/manual/en/function.opcache-invalidate.php * @param string $filename

The path to the script being invalidated.

* @param bool $force [optional]

If set to TRUE, the script will be invalidated regardless of whether invalidation is necessary.

* @return bool * Returns TRUE if the opcode cache for script was * invalidated or if there was nothing to invalidate, or FALSE if the opcode * cache is disabled. * @since 5.5 */ function opcache_invalidate(string $filename, bool $force = false): bool {} /** * (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )
* Resets the contents of the opcode cache * @link https://secure.php.net/manual/en/function.opcache-reset.php * @return bool Returns TRUE if the opcode cache was reset, or FALSE if the opcode cache is disabled. * @since 5.5 */ function opcache_reset(): bool {} /** * (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )
* Get status information about the cache * @link https://php.net/manual/en/function.opcache-get-status.php * @param bool $include_scripts

Include script specific state information

* @return array|false

Returns an array of information, optionally containing script specific state information

* @since 5.5 */ #[ArrayShape([ 'opcache_enabled' => 'bool', 'file_cache' => 'string', 'file_cache_only' => 'bool', 'cache_full' => 'bool', 'restart_pending' => 'bool', 'restart_in_progress' => 'bool', 'memory_usage' => 'array', 'interned_strings_usage' => 'array', 'opcache_statistics' => 'array', 'preload_statistics' => 'array', 'scripts' => 'array', 'jit' => 'array', ])] function opcache_get_status(bool $include_scripts = true): array|false {} /** * (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )
* Get configuration information about the cache * @link https://php.net/manual/en/function.opcache-get-configuration.php * @return array|false

Returns an array of information, including ini, blacklist and version

* @since 5.5 */ #[ArrayShape(["directives" => "array", "version" => "string[]", "blacklist" => "array"])] function opcache_get_configuration(): array|false {} /** * (PHP 5 >= 5.6, PECL ZendOpcache >= 7.0.4 )
* This function checks if a PHP script has been cached in OPCache. * This can be used to more easily detect the "warming" of the cache for a particular script. * @link https://secure.php.net/manual/en/function.opcache-is-script-cached.php * @param string $filename The path to the PHP script to be checked. * @return bool Returns TRUE if file is cached in OPCache, FALSE otherwise. * @since 5.6 */ function opcache_is_script_cached(string $filename): bool {}