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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.39 ms | 1396 KiB | 15 Q