- var_dump: documentation ( source)
- memory_get_peak_usage: documentation ( source)
- str_repeat: documentation ( source)
- extract: documentation ( source)
<?php
$params = array('key' => str_repeat('value', 1e6));
$a = memory_get_peak_usage();
extract($params);
$b = memory_get_peak_usage();
var_dump($b < 1.1 * $a);