1--TEST--
2Generator keys are auto-incrementing by default
3--FILE--
4<?php
5
6function gen() {
7    yield 'foo';
8    yield 'bar';
9    yield 5 => 'rab';
10    yield 'oof';
11}
12
13foreach (gen() as $k => $v) {
14    echo $k, ' => ', $v, "\n";
15}
16
17?>
18--EXPECT--
190 => foo
201 => bar
215 => rab
226 => oof
23