Skip to content

Instantly share code, notes, and snippets.

@Frago9876543210
Created January 6, 2019 15:18
Show Gist options
  • Save Frago9876543210/8038519a689d7d1cbecb9e28124759bd to your computer and use it in GitHub Desktop.
Save Frago9876543210/8038519a689d7d1cbecb9e28124759bd to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
ini_set("memory_limit", "1M");
global $i;
register_shutdown_function(function() : void{
if(error_get_last() !== null){
var_dump($GLOBALS["i"]);
}
});
$array = [];
for(; $i < PHP_INT_MAX; $i++){
$array[] = "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment