3v4l.org

run code in 300+ PHP versions simultaneously
<?php $servers = ["one","two","tree","four"]; function isServerDown($server) { return $server === 'tree'; } for ($i = 0, $count = count($servers); $i < $count; ++$i) { $server = $servers[(int)$i]; printf("Key=%d VAL=%s\n", $i, $server); $i = isServerDown($server) ? $i - .9 : (int)$i; }
Output for git.master, git.master_jit, rfc.property-hooks
Key=0 VAL=one Key=1 VAL=two Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=2 VAL=tree Key=3 VAL=four

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:
156.33 ms | 405 KiB | 5 Q