First, let's look at the problem: the output of the following code: var_dump (memory_get_usage (); $ alaruence; var_dump (memory_get_usage (); unset ($ ); var_dump (memory_get_usage (); output (on my PC, the loaded extensions may vary depending on the system and PHP version): int (90440) int (90640) int
First, let's look at the problem: the output of the following code: var_dump (memory_get_usage (); $ a = "laruence"; var_dump (memory_get_usage (); unset ($ ); var_dump (memory_get_usage (); output (on my PC, the loaded extensions may vary depending on the system and PHP version): int (90440) int (90640) int
First, let's look at the problem: the output of the following code: var_dump (memory_get_usage (); $ a = "laruence"; var_dump (memory_get_usage (); unset ($ ); var_dump (memory_get_usage (); output (on my PC, the loaded extensions may vary depending on the system and PHP version): int (90440) int (90640) int (90472) noticed that 90472-90440 = 32, so I came to various conclusions. Some people say that PHP's unset does not actually release the memory, and some say, PHP unset is only releasing large variables (a large number of characters...
Original article address: I have a deep understanding of who has moved my memory in PHP memory management. I would like to thank the original author for sharing this article.