(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Classes implementing RecursiveIterator can be used to iterate over iterators recursively.