Skip to content

Instantly share code, notes, and snippets.

@divinity76
Last active August 3, 2022 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divinity76/7b1722f6969cea7579913da88f2dbe2f to your computer and use it in GitHub Desktop.
Save divinity76/7b1722f6969cea7579913da88f2dbe2f to your computer and use it in GitHub Desktop.
memory_leak.php
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