3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a0', 'a1', 'a2', 'a3', 'a4', 'a5'); $b = array('b0', 'b1', 'b2', 'b3', 'b4', 'b5'); for($i = 0, $sum = count($a); $i < $sum; $i+=2){ if ($i % 2 == 0) echo $a[$i] . ' ' . $b[$i] . ' ' . $a[$i + 1] . ' ' . $b[$i + 1] . "<br>"; else echo $b[$i] . ' ' . $a[$i] . ' ' . $b[$i + 1] . ' ' . $a[$i + 1] . "<br>"; }
Output for git.master, git.master_jit, rfc.property-hooks
a0 b0 a1 b1<br>a2 b2 a3 b3<br>a4 b4 a5 b5<br>

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