$test = array(1);
$b = 2;
$test[] =&$b;
$el = 3;
$initials = [];
var_dump($test);
var_dump(array_reduce($test, function&(&$initial, &$value) use (&$initials) {
$value++;
$initials[] = &$initial;
$initial++;
return $initial;
}, $el));
var_dump($test, $initials);