3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $numbers = array(1, 2, 3, 4, 5); $text = array(1 => 'ONE', 2 => 'TWO', 3 => 'THREE', 4 => 'FOUR', 5 => 'FIVE'); function getNumbers() { global $numbers; for($j = $numbers[0]; $j <=$numbers; $j++){ yield $j; } } foreach(getNumbers() as $number){ echo $number . ':' . $text[$number] . "\n"; }

Abusive script

This script was stopped while abusing our resources