- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
- 2.097152
44.044288
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /in/qQonc on line 8
Process exited with code 255.
<?php
$row = 0;
$dest = [];
$a = 1;
while ($row < 2000000) {
$dest[] = [
$a,
1,
];
if ($row % 100000 === 0) {
echo (memory_get_usage(true) / 1000000) . PHP_EOL;
}
$row++;
}