Programming Languages PHP Objective
Sep 23, 2025

Which PHP function returns the current memory usage in bytes?

Choose the correct answer:
A) memory_get_usage()
B) memory_get_peak_usage()
C) get_memory_limit()
D) memory_limit()
Detailed Explanation

Explanation: memory_get_usage() returns the current memory usage in bytes. Use memory_get_usage(true) to get real memory usage including system overhead. memory_get_peak_usage() returns the peak memory usage.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback