Here is a non-useful but informative example:

```
// this will run forever
foreach (cycle(['A', 'B']) as $value) {

}
// this will run until the condition is satisfied
foreach (cycle(['A', 'B']) as $value) {
    if (mt_rand(1, 100) === 50) {
       break;
   }
}
```