3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['transparent', 'grey', 'transparent', 'grey']; $arr2 = ['grey', 'transparent', 'grey', 'transparent']; $i = 0; $bool = true; for($x = 0; $x<20; $x++){ if($bool){ echo 'color ' . $arr1[$i] . "\n"; }else{ echo 'color ' . $arr2[$i] . "\n"; } $i = ++$i % 4; if($i ==0) $bool = !$bool; if($i ==0) echo "\n"; // to make it easier to read }
Output for git.master_jit, git.master, rfc.property-hooks
color transparent color grey color transparent color grey color grey color transparent color grey color transparent color transparent color grey color transparent color grey color grey color transparent color grey color transparent color transparent color grey color transparent color grey

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