3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1,100); $i = 0; $total = count($array); for ($i = 0; $i < $total; $i++) { echo '<div class="row">'; for ($e = $i; $e < $i + 3 && $e < $total; $e++) { echo $array[$e]; } $i = $e; echo '</div>'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
Branch analysis from position: 10
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
Branch analysis from position: 21
Branch analysis from position: 21
filename:       /in/ttEE7
function name:  (null)
number of ops:  28
compiled vars:  !0 = $array, !1 = $i, !2 = $total, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    5     5        ASSIGN                                                   !1, 0
    6     6        COUNT                                            ~7      !0
          7        ASSIGN                                                   !2, ~7
    7     8        ASSIGN                                                   !1, 0
          9      > JMP                                                      ->25
    8    10    >   ECHO                                                     '%3Cdiv+class%3D%22row%22%3E'
    9    11        ASSIGN                                                   !3, !1
         12      > JMP                                                      ->16
   10    13    >   FETCH_DIM_R                                      ~11     !0, !3
         14        ECHO                                                     ~11
    9    15        PRE_INC                                                  !3
         16    >   ADD                                              ~13     !1, 3
         17        IS_SMALLER                                       ~14     !3, ~13
         18      > JMPZ_EX                                          ~14     ~14, ->21
         19    >   IS_SMALLER                                       ~15     !3, !2
         20        BOOL                                             ~14     ~15
         21    > > JMPNZ                                                    ~14, ->13
   12    22    >   ASSIGN                                                   !1, !3
   13    23        ECHO                                                     '%3C%2Fdiv%3E'
    7    24        PRE_INC                                                  !1
         25    >   IS_SMALLER                                               !1, !2
         26      > JMPNZ                                                    ~18, ->10
   14    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.43 ms | 1396 KiB | 15 Q