run code in 200+ php & hhvm versions
Bugs & Features
<?php $_rows = array(); for($i = 1; $i <= 28; $i++) { if(in_array($i, array(1,2))) { $_rows['row1'][] = 'Category '.$i; } if(in_array($i, array(3,4,5))) { $_rows['row2'][] = 'Category '.$i; } if(in_array($i, array(6,7,8))) { $_rows['row3'][] = 'Category '.$i; } if(in_array($i, array(9,10,11))) { $_rows['row4'][] = 'Category '.$i; } if(in_array($i, array(12,13))) { $_rows['row5'][] = 'Category '.$i; } if(in_array($i, array(14,15,16))) { $_rows['row6'][] = 'Category '.$i; } if(in_array($i, array(17,18,19))) { $_rows['row7'][] = 'Category '.$i; } if(in_array($i, array(20,21,22))) { $_rows['row8'][] = 'Category '.$i; } if(in_array($i, array(23,24,25))) { $_rows['row9'][] = 'Category '.$i; } if(in_array($i, array(26,27,28))) { $_rows['row10'][] = 'Category '.$i; } } foreach($_rows as $_row):?> <ul> <?php foreach($_row as $_sub_category): $i++; ?> <li <?php if($i==1) { echo 'class="first"'; } ?>><?php echo $_sub_category; ?></li> <?php endforeach; ?> </ul> <?php endforeach; ?>

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
<ul> <li >Category 1</li> <li >Category 2</li> </ul> <ul> <li >Category 3</li> <li >Category 4</li> <li >Category 5</li> </ul> <ul> <li >Category 6</li> <li >Category 7</li> <li >Category 8</li> </ul> <ul> <li >Category 9</li> <li >Category 10</li> <li >Category 11</li> </ul> <ul> <li >Category 12</li> <li >Category 13</li> </ul> <ul> <li >Category 14</li> <li >Category 15</li> <li >Category 16</li> </ul> <ul> <li >Category 17</li> <li >Category 18</li> <li >Category 19</li> </ul> <ul> <li >Category 20</li> <li >Category 21</li> <li >Category 22</li> </ul> <ul> <li >Category 23</li> <li >Category 24</li> <li >Category 25</li> </ul> <ul> <li >Category 26</li> <li >Category 27</li> <li >Category 28</li> </ul>

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