<?php function test() { foreach (range(1,10) as $i) { yield $i; } } $foo = test(); var_dump($foo instanceof Generator);
You have javascript disabled. You will not be able to edit any code.