<?php
$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, ',', '.');
unset($array);
echo number_format(memory_get_usage(), 0, ',', '.');
echo "\n";
echo number_format(memory_get_usage(true), 0, ',', '.');
- Output for 7.4.0
- 10.987.712
12.587.008389.264
8.388.608
- Output for 7.3.0 - 7.3.12
- 10.987.624
12.587.008389.176
8.388.608
- Output for 7.2.0 - 7.2.25
- 10.983.800
12.587.008385.352
8.388.608
- Output for 7.1.25 - 7.1.33
- 10.947.224
12.587.008348.776
8.388.608
- Output for 7.1.0, 7.1.7
- 10.947.296
12.587.008348.848
8.388.608
- Output for 7.1.5 - 7.1.6
- 10.947.936
12.587.008349.488
8.388.608
- Output for 7.0.0 - 7.0.20
- 10.947.312
12.587.008348.864
8.388.608
- Output for 5.6.7 - 5.6.28
- 20.468.640
20.971.520219.816
786.432
- Output for 5.5.24 - 5.5.35
- 20.468.640
20.971.520219.800
786.432
- Output for 5.4.10 - 5.4.45
- 20.469.184
20.971.520220.320
786.432
- Output for 5.4.0 - 5.4.9
- 20.468.648
20.971.520219.792
786.432
- Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected '[' in /in/INMdu on line 3
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected '[' in /in/INMdu on line 3
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/INMdu on line 3
Process exited with code 255.
preferences:
156.53 ms | 401 KiB | 220 Q