3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a','b','c','d','e','f','g','h','i','j','k']; 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 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
Branch analysis from position: 3
Branch analysis from position: 18
filename:       /in/L1kE8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $arr, !1 = $i, !2 = $ar, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->22
          3    >   INIT_FCALL                                               'array_slice'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
         10        ECHO                                                     '%3Cli%3E%0A'
         11      > FE_RESET_R                                       $9      !2, ->18
         12    > > FE_FETCH_R                                       ~10     $9, !3, ->18
         13    >   ASSIGN                                                   !4, ~10
    4    14        NOP                                                      
         15        FAST_CONCAT                                      ~12     !3, '%0A'
         16        ECHO                                                     ~12
    3    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $9
    4    19        ECHO                                                     '%3C%2Fli%3E%0A'
    3    20        ADD                                              ~13     !1, 2
         21        ASSIGN                                                   !1, ~13
         22    >   COUNT                                            ~15     !0
         23        IS_SMALLER                                               !1, ~15
         24      > JMPNZ                                                    ~16, ->3
    4    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.14 ms | 1396 KiB | 15 Q