Last active
September 12, 2018 05:19
-
-
Save cuonghuynh/c3a2607617684a9ead245ad2221a9761 to your computer and use it in GitHub Desktop.
Get memory usage in MB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo round((memory_get_usage() / 1024 / 1024, 2) . ' MB' . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment