3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<table>'; for ($i=0;$i<8;$i++) { echo '<tr>'; if($i==0 || $i==7) { for($j=0;$j<8;$j++) { ?> <td style="background: grey; height:10px; width:10px"></td> <?php } } else { for($j=0;$j<8;$j++) { if ($j==0 || $j==7) { ?> <td style="background: grey; height:10px; width:10px"></td> <?php } else { ?> <td style="background: white; height:10px; width:10px"></td> <?php } } } echo '</tr>'; } echo '</table>'; echo $i; echo $j ?>
Output for git.master, git.master_jit, rfc.property-hooks
<table><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: white; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr><tr> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> <td style="background: grey; height:10px; width:10px"></td> </tr></table>88

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:
49.03 ms | 417 KiB | 8 Q