1--TEST--
2Array keys can be yielded from generators
3--FILE--
4<?php
5
6function gen() {
7    yield [] => 1;
8}
9
10$gen = gen();
11var_dump($gen->key());
12var_dump($gen->current());
13
14?>
15--EXPECT--
16array(0) {
17}
18int(1)
19