<?php $execute = function ($n){ foreach($n as $a) { yield $a; } }; var_dump($execute); /*foreach(execute([1,2,5]) as $n){ echo $n.PHP_EOL; }*/
You have javascript disabled. You will not be able to edit any code.