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++, $i++) { echo $array[$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 = 17
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 13
Branch analysis from position: 23
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 = 20, Position 2 = 22
Branch analysis from position: 20
Branch analysis from position: 22
Branch analysis from position: 22
filename:       /in/plMfH
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                                                      ->17
   10    13    >   FETCH_DIM_R                                      ~11     !0, !3
         14        ECHO                                                     ~11
    9    15        PRE_INC                                                  !3
         16        PRE_INC                                                  !1
         17    >   ADD                                              ~14     !1, 3
         18        IS_SMALLER                                       ~15     !3, ~14
         19      > JMPZ_EX                                          ~15     ~15, ->22
         20    >   IS_SMALLER                                       ~16     !3, !2
         21        BOOL                                             ~15     ~16
         22    > > JMPNZ                                                    ~15, ->13
   12    23    >   ECHO                                                     '%3C%2Fdiv%3E'
    7    24        PRE_INC                                                  !1
         25    >   IS_SMALLER                                               !1, !2
         26      > JMPNZ                                                    ~18, ->10
   13    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.79 ms | 1396 KiB | 15 Q