← All docs

opcache_get_status()

Returns OPcache memory, statistics, and optionally the cached scripts.

opcache_get_status()

function opcache_get_status(mixed $include_scripts = true): mixed

Returns OPcache memory, statistics, and optionally the cached scripts.

Parameters:

  • $include_scripts (mixed), default true, optional

Returns: mixed

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): supported through native OPcache prelude declarations or dedicated interpreter handlers; see OPcache.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how opcache_get_status is implemented in the compiler, see the internals page.