1--TEST--
2yield from with an (Array)Iterator
3--FILE--
4<?php
5function g() {
6 yield 1;
7 yield from new ArrayIterator([2, 3, 4]);
8 yield 5;
9}
10
11$g = g();
12foreach ($g as $yielded) {
13 var_dump($yielded);
14}
15?>
16--EXPECT--
17int(1)
18int(2)
19int(3)
20int(4)
21int(5)
22