3v4l.org

run code in 300+ PHP versions simultaneously
<?php $food = range(1,36); foreach (array_chunk($food, 3, true) as $key => $array) { $oddeven = ($key%2 == 1) ? " class='even'":""; echo '<ul'.$oddeven.'>'; foreach ($array as $item) { echo '<li>'.$item.'</li>'; } echo '</ul>'."\r\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<ul><li>1</li><li>2</li><li>3</li></ul> <ul class='even'><li>4</li><li>5</li><li>6</li></ul> <ul><li>7</li><li>8</li><li>9</li></ul> <ul class='even'><li>10</li><li>11</li><li>12</li></ul> <ul><li>13</li><li>14</li><li>15</li></ul> <ul class='even'><li>16</li><li>17</li><li>18</li></ul> <ul><li>19</li><li>20</li><li>21</li></ul> <ul class='even'><li>22</li><li>23</li><li>24</li></ul> <ul><li>25</li><li>26</li><li>27</li></ul> <ul class='even'><li>28</li><li>29</li><li>30</li></ul> <ul><li>31</li><li>32</li><li>33</li></ul> <ul class='even'><li>34</li><li>35</li><li>36</li></ul>

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