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=($left/$colLeft); echo '<ul>'; } echo '<li>'.$row.'</li>'; $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 = 28
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 28
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 27
Branch analysis from position: 17
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/QGZcP
function name:  (null)
number of ops:  30
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, ->28
         11    > > FE_FETCH_R                                               $13, !5, ->28
    9    12    >   IS_EQUAL                                                 !4, 0
         13      > JMPZ                                                     ~14, ->17
   11    14    >   DIV                                              ~15     !1, !2
         15        ASSIGN                                                   !3, ~15
   12    16        ECHO                                                     '%3Cul%3E'
   14    17    >   CONCAT                                           ~17     '%3Cli%3E', !5
         18        CONCAT                                           ~18     ~17, '%3C%2Fli%3E'
         19        ECHO                                                     ~18
   15    20        PRE_INC                                                  !4
   16    21        PRE_DEC                                                  !1
   17    22        IS_SMALLER_OR_EQUAL                                      !3, !4
         23      > JMPZ                                                     ~21, ->27
   19    24    >   ECHO                                                     '%3C%2Ful%3E'
   20    25        ASSIGN                                                   !4, 0
   21    26        PRE_DEC                                                  !2
    7    27    > > JMP                                                      ->11
         28    >   FE_FREE                                                  $13
   23    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.86 ms | 1396 KiB | 15 Q