- Output for 7.4.0 - 7.4.1
- 4586344 4586376 8784856 4586376
- Output for 7.3.0 - 7.3.13
- 4586264 4586296 8784776 4586296
- Output for 7.2.0 - 7.2.26
- 4582352 4582384 8780864 4582384
- Output for 7.1.26 - 7.1.33
- 4545744 4545776 8744256 4545776
<?php
$a = range(1,100000);
echo memory_get_usage(), "\n";
foreach ($a as $i => $v) {
if (!$i){
echo memory_get_usage(), "\n";
$a[$i] = 111;
echo memory_get_usage(), "\n";
}
}
echo memory_get_usage(), "\n";