3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function printer() { while (true) { $string = (yield 3); echo $string; } } $printer = printer(); foreach($printer as $v) { var_dump($v); } $printer->next(); $printer->send('Hello world!'); ?>
based on 2WLFa

Abusive script

This script was stopped while abusing our resources