Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<opcache_compile_fileopcache_get_status>
^OPcache FunctionsLast updated: Mon, 26 Oct 2026

opcache_get_configuration

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache > 7.0.2)

opcache_get_configuration — Get configuration information about the cache

Description

function opcache_get_configuration(): array|false

This function returns configuration information about the cache instance

Parameters

This function has no parameters.

Return Values

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

Errors/Exceptions

If opcache.restrict_api is in use and the current path is in violation of the rule, an E_WARNING will be raised; no status information will be returned.

See Also


<opcache_compile_fileopcache_get_status>
^OPcache FunctionsLast updated: Mon, 26 Oct 2026