Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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