Created
September 12, 2018 05:19
-
-
Save cuonghuynh/34c9e544bd43eac2dbb4ca92464fa839 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 (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