3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result=range(1,50); $left=count($result); $rowLeft=5; $limit=0; $i=0; foreach($result as $row) { if($i>=$limit) { $rowLeft--; $limit=ceil($left/$rowLeft); $i=0; echo '<ul>'; } echo '<li>'.$row.'</li>'; $i++; $left--; if($i>=$limit) { echo '</ul>'; } }
Output for git.master, git.master_jit, rfc.property-hooks
<ul><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li><li>7</li><li>8</li><li>9</li><li>10</li><li>11</li><li>12</li><li>13</li></ul><ul><li>14</li><li>15</li><li>16</li><li>17</li><li>18</li><li>19</li><li>20</li><li>21</li><li>22</li><li>23</li><li>24</li><li>25</li><li>26</li></ul><ul><li>27</li><li>28</li><li>29</li><li>30</li><li>31</li><li>32</li><li>33</li><li>34</li><li>35</li><li>36</li><li>37</li><li>38</li></ul><ul><li>39</li><li>40</li><li>41</li><li>42</li><li>43</li><li>44</li><li>45</li><li>46</li><li>47</li><li>48</li><li>49</li><li>50</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:
54.71 ms | 402 KiB | 8 Q