3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0; $i<count($arr); $i=$i+2) { $ar = array_slice($arr, $i, 2, true); echo "<li>\n"; foreach($ar as $key=>$value) { echo "$value\n"; } echo "</li>\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
Branch analysis from position: 17
filename:       /in/chhGE
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $ar, !2 = $arr, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->21
          2    >   INIT_FCALL                                               'array_slice'
          3        SEND_VAR                                                 !2
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
          9        ECHO                                                     '%3Cli%3E%0A'
         10      > FE_RESET_R                                       $8      !1, ->17
         11    > > FE_FETCH_R                                       ~9      $8, !3, ->17
         12    >   ASSIGN                                                   !4, ~9
    3    13        NOP                                                      
         14        FAST_CONCAT                                      ~11     !3, '%0A'
         15        ECHO                                                     ~11
    2    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $8
    3    18        ECHO                                                     '%3C%2Fli%3E%0A'
    2    19        ADD                                              ~12     !0, 2
         20        ASSIGN                                                   !0, ~12
         21    >   COUNT                                            ~14     !2
         22        IS_SMALLER                                               !0, ~14
         23      > JMPNZ                                                    ~15, ->2
    3    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.24 ms | 1396 KiB | 15 Q