<?php
$array = array();
for($i = 0; $i < 50000; $i++) {
$array[] = md5('hallo');
$array[] = md5('bla');
}
echo number_format(memory_get_usage(), 0, ',', '.');
echo "\n";
echo number_format(memory_get_usage(true), 0, ',', '.');
echo "\n";
unset($array);
echo number_format(memory_get_usage(), 0, ',', '.');
echo "\n";
echo number_format(memory_get_usage(true), 0, ',', '.');
- Output for 7.3.0 - 7.3.1
- 10.987.624
12.587.008
389.176
8.388.608
- Output for 7.2.0 - 7.2.13
- 10.983.928
12.587.008
385.480
8.388.608
- Output for 7.1.0 - 7.1.25
- 10.947.352
12.587.008
348.904
8.388.608
- Output for 7.0.0 - 7.0.33
- 10.947.368
12.587.008
348.920
8.388.608
- Output for 5.6.0 - 5.6.38
- 20.468.544
20.971.520
219.720
786.432
- Output for 5.5.0 - 5.5.38
- 20.468.544
20.971.520
219.704
786.432
- Output for 5.4.10 - 5.4.45
- 20.469.088
20.971.520
220.224
786.432
- Output for 5.4.0 - 5.4.9
- 20.468.560
20.971.520
219.696
786.432
- Output for 5.3.11 - 5.3.29
- 20.873.632
21.233.664
624.728
1.310.720
- Output for 5.3.0 - 5.3.10
- 20.873.280
21.233.664
624.424
1.310.720
- Output for 5.2.10 - 5.2.17
- 19.531.608
19.922.944
82.408
786.432
- Output for 5.2.7 - 5.2.9
- 19.533.200
19.922.944
213.560
786.432
- Output for 5.2.6
- 19.533.528
19.922.944
213.880
786.432
- Output for 5.2.3 - 5.2.5
- 19.533.560
19.660.800
213.880
786.432
- Output for 5.2.2
- 19.531.552
19.660.800
211.896
1.572.864
- Output for 5.2.1
- 19.530.992
19.660.800
113.608
1.835.008
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0
- Fatal error: Call to undefined function memory_get_usage() in /in/YIQJf on line 9
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: memory_get_usage() in /in/YIQJf on line 9
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- Fatal error: Call to undefined function: memory_get_usage() in /in/YIQJf on line 9
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: memory_get_usage() in /in/YIQJf on line 9
preferences:
206.73 ms | 401 KiB | 288 Q