<?php array_chunk(array $array, int $length, bool $preserve_keys = false): array
<?php $chunks = []; foreach (array_chunk($this->items, $size, true) as $chunk) { $chunks[] = new static($chunk); }
<?php function runProcessesInParallel(array $processes): void { foreach (array_chunk($processes, 4) as $batch) { array_map(function (Process $process): void { $process->start();