3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handlersList = []; for ($i = 0; $i < 25; $i++) { $handlersList[] = function() use ($i) { yield "Some Shit " . $i; }; } $i = 0; while (true) { if ($i >= count($handlersList)) break; $func = $handlersList[$i++](); echo $func->current(); }
Output for git.master, git.master_jit, rfc.property-hooks
Some Shit 0Some Shit 1Some Shit 2Some Shit 3Some Shit 4Some Shit 5Some Shit 6Some Shit 7Some Shit 8Some Shit 9Some Shit 10Some Shit 11Some Shit 12Some Shit 13Some Shit 14Some Shit 15Some Shit 16Some Shit 17Some Shit 18Some Shit 19Some Shit 20Some Shit 21Some Shit 22Some Shit 23Some Shit 24

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