- var_dump: documentation ( source)
- array_fill: documentation ( source)
<?php
$any_power_of_two = 65535;
$alphabetSize = 62;
$values = array_fill(0, $alphabetSize, 0);
for ($i = 0; $i < $any_power_of_two; ++$i) {
++$values[$i % $alphabetSize];
}
var_dump($values);