realpath_cache_size()

realpath_cache_size() — Get realpath cache size.

Built-in function of PHP 8.5. The manual lists it as available in PHP 5 >= 5.3.2, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.

What it does

Get the amount of memory used by the realpath cache.

Signature

realpath_cache_size(): int

Parameters

This function takes no parameters.

Return value

Returns how much memory realpath cache is using.

Example

A runnable snippet:

var_dump(realpath_cache_size());

Output:

int(412)

See also

realpath_cache_get()

All PHP 8.5 built-in functions

Reference card built from the PHP manual page realpath_cache_size() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.