- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- register_shutdown_function: documentation ( source)
- ini_set: documentation ( source)
<?php
ini_set('memory_limit', '1M');
register_shutdown_function(function () {
ini_set('memory_limit', '10M');
$v = str_repeat(' ', 2 ** 21);
var_dump(strlen($v));
});
$v = str_repeat(' ', 2 ** 21);