<?php function gen() { for ($i = 0; $i < 10; $i++) { try { yield $i; } catch(Exception $e) { var_dump($e); } } } foreach (gen() as $i) { var_dump($i); throw new Exception($i); }
You have javascript disabled. You will not be able to edit any code.