← All built-ins / heap_dump()
heap_dump()
unsafeheap_dump(...$args): string
Parameters
Takes no arguments.
Return value
Debug dump of the runtime heap (allocation count, sizes).
Example
echo strlen(heap_dump()) > 0 ? "heap-info" : "empty";
heap-info