3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function () { yield from range('a', 'z'); }; $b = function () use ($a) { yield from $a(); }; foreach ($b() as $i => $v) { echo "$i: $v\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0: a 1: b 2: c 3: d 4: e 5: f 6: g 7: h 8: i 9: j 10: k 11: l 12: m 13: n 14: o 15: p 16: q 17: r 18: s 19: t 20: u 21: v 22: w 23: x 24: y 25: z

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:
54.74 ms | 401 KiB | 8 Q