3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result=range(1,8); $left=count($result); $colLeft=4; $limit=16; $i=0; foreach($result as $row) { if($i==0) { $limit=ceil($left/$colLeft); echo '<tr>'; } echo '<td>'.$row.'</td><td>'.$row.'</td><td>'.$row.'</td>'; $i++; $left--; if($i>=$limit) { echo '</tr>'; $i=0; $colLeft--; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 35
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 35
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 34
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 34
Branch analysis from position: 20
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/PM7st
function name:  (null)
number of ops:  37
compiled vars:  !0 = $result, !1 = $left, !2 = $colLeft, !3 = $limit, !4 = $i, !5 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 8
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
    3     5        COUNT                                            ~8      !0
          6        ASSIGN                                                   !1, ~8
    4     7        ASSIGN                                                   !2, 4
    5     8        ASSIGN                                                   !3, 16
    6     9        ASSIGN                                                   !4, 0
    7    10      > FE_RESET_R                                       $13     !0, ->35
         11    > > FE_FETCH_R                                               $13, !5, ->35
    9    12    >   IS_EQUAL                                                 !4, 0
         13      > JMPZ                                                     ~14, ->20
   11    14    >   INIT_FCALL                                               'ceil'
         15        DIV                                              ~15     !1, !2
         16        SEND_VAL                                                 ~15
         17        DO_ICALL                                         $16     
         18        ASSIGN                                                   !3, $16
   12    19        ECHO                                                     '%3Ctr%3E'
   14    20    >   CONCAT                                           ~18     '%3Ctd%3E', !5
         21        CONCAT                                           ~19     ~18, '%3C%2Ftd%3E%3Ctd%3E'
         22        CONCAT                                           ~20     ~19, !5
         23        CONCAT                                           ~21     ~20, '%3C%2Ftd%3E%3Ctd%3E'
         24        CONCAT                                           ~22     ~21, !5
         25        CONCAT                                           ~23     ~22, '%3C%2Ftd%3E'
         26        ECHO                                                     ~23
   15    27        PRE_INC                                                  !4
   16    28        PRE_DEC                                                  !1
   17    29        IS_SMALLER_OR_EQUAL                                      !3, !4
         30      > JMPZ                                                     ~26, ->34
   19    31    >   ECHO                                                     '%3C%2Ftr%3E'
   20    32        ASSIGN                                                   !4, 0
   21    33        PRE_DEC                                                  !2
    7    34    > > JMP                                                      ->11
         35    >   FE_FREE                                                  $13
   23    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.94 ms | 1392 KiB | 17 Q