(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Generator objects are returned from generators.
Generator objects cannot be instantiated via new.
$value
$exception
See also object iteration.