Last active
August 3, 2022 13:04
-
-
Save divinity76/7b1722f6969cea7579913da88f2dbe2f to your computer and use it in GitHub Desktop.
memory_leak.php
This file contains 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
php -r 'ini_set("memory_limit","-1");$a=[];for($i=0;;++$i){echo "leaked {$i}MB\r";$a[]=random_bytes(1*1024*1024);}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment