3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occurrences = range(0, 100); function yeilder() { global $occurrences; foreach ($occurrences as $occurrence) { yield $occurrence; } } $values = yeilder(); foreach ($values as $value) { echo $value; }
Output for git.master, git.master_jit, rfc.property-hooks
0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.93 ms | 1495 KiB | 4 Q