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>"; foreach($ar as $key=>$value) { echo "$value"; } echo "</li>"; }
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 = 3
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 3
Branch analysis from position: 24
Branch analysis from position: 3
Branch analysis from position: 17
filename:       /in/oEUCP
function name:  (null)
number of ops:  25
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                                                      ->21
          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'
         11      > FE_RESET_R                                       $9      !2, ->17
         12    > > FE_FETCH_R                                       ~10     $9, !3, ->17
         13    >   ASSIGN                                                   !4, ~10
    4    14        CAST                                          6  ~12     !3
         15        ECHO                                                     ~12
    3    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $9
    4    18        ECHO                                                     '%3C%2Fli%3E'
    3    19        ADD                                              ~13     !1, 2
         20        ASSIGN                                                   !1, ~13
         21    >   COUNT                                            ~15     !0
         22        IS_SMALLER                                               !1, ~15
         23      > JMPNZ                                                    ~16, ->3
    4    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1396 KiB | 15 Q