3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_rows = array(); $_row = array(); $i = 0; while($i < 28) $i++; { if(in_array($i, array(1,2))) { $_row['row1'] = 'Category '.$i; } if(in_array($i, array(3,4,5))) { $_row['row2'] = 'Category '.$i; } if(in_array($i, array(6,7,8))) { $_row['row3'] = 'Category '.$i; } if(in_array($i, array(9,10,11))) { $_row['row4'] = 'Category '.$i; } if(in_array($i, array(12,13))) { $_row['row5'] = 'Category '.$i; } if(in_array($i, array(14,15,16))) { $_row['row6'] = 'Category '.$i; } if(in_array($i, array(17,18,19))) { $_row['row7'] = 'Category '.$i; } if(in_array($i, array(20,21,22))) { $_row['row8'] = 'Category '.$i; } if(in_array($i, array(23,24,25))) { $_row['row9'] = 'Category '.$i; } if(in_array($i, array(26,27,28))) { $_row['row10'] = 'Category '.$i; } $_rows[] = $_row; } print_r($_rows);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [row10] => Category 28 ) )

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