memory_get_usage

PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8
memory_get_usage - Returns the amount of memory allocated to PHP
Manual
Code Examples

Example #1 A memory_get_usage example

PHP Version: