3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1; $i<=8;$i++){ echo "<tr>"; for($j=1;$j<=8;$j++){ echo "<td></td>"; if($i % 2==0){ echo '<td style="background-color:black; width:35px; height:35px"></td>'; echo '<td style="background-color:red; width:35px; height:35px"></td>'; } else{ echo '<td style="background-color:red; width:35px; height:35px"></td>'; echo '<td style="background-color:black; width:35px; height:35px"></td>'; } } echo "</tr>"; } ?> </table> </body> </html> ?>
Output for git.master, git.master_jit, rfc.property-hooks
<tr><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td><td></td><td style="background-color:red; width:35px; height:35px"></td><td style="background-color:black; width:35px; height:35px"></td></tr><tr><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td><td></td><td style="background-color:black; width:35px; height:35px"></td><td style="background-color:red; width:35px; height:35px"></td></tr> </table> </body> </html> ?>

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:
41.31 ms | 421 KiB | 8 Q