3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = range(1,31); $i = 3; $j = 2; $str =""; for($k=0;$k<end($days);){ $str .= "<b>" . implode("</b> <b>", array_slice($days, $k,$i)) ."</b> " . implode(" ", array_slice($days, $k+$i, $j)). " "; $k=$k+$i+$j; } echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
<b>1</b> <b>2</b> <b>3</b> 4 5 <b>6</b> <b>7</b> <b>8</b> 9 10 <b>11</b> <b>12</b> <b>13</b> 14 15 <b>16</b> <b>17</b> <b>18</b> 19 20 <b>21</b> <b>22</b> <b>23</b> 24 25 <b>26</b> <b>27</b> <b>28</b> 29 30 <b>31</b>

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:
19.72 ms | 402 KiB | 8 Q