3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result=range(1,5); $left=count($result); $colLeft=4; $limit=0; $i=0; foreach($result as $row) { if($i==0) { $limit=ceil($left/$colLeft); echo '<tr>'; } echo '<td>'.$row.'</td>'; $i++; $left--; if($i>=$limit) { echo '</ul>'; $i=0; $colLeft--; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 31
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 31
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 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 30
Branch analysis from position: 20
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/lFH2E
function name:  (null)
number of ops:  33
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                                                 5
          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, 0
    6     9        ASSIGN                                                   !4, 0
    7    10      > FE_RESET_R                                       $13     !0, ->31
         11    > > FE_FETCH_R                                               $13, !5, ->31
    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'
         22        ECHO                                                     ~19
   15    23        PRE_INC                                                  !4
   16    24        PRE_DEC                                                  !1
   17    25        IS_SMALLER_OR_EQUAL                                      !3, !4
         26      > JMPZ                                                     ~22, ->30
   19    27    >   ECHO                                                     '%3C%2Ful%3E'
   20    28        ASSIGN                                                   !4, 0
   21    29        PRE_DEC                                                  !2
    7    30    > > JMP                                                      ->11
         31    >   FE_FREE                                                  $13
   23    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.25 ms | 1388 KiB | 17 Q