3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5,6,7,8,9,10,'a','b','c','d','e','f','g','h','i','j'); for($i=0;$i<count($arr);$i++){ echo("loop "); $tmp = $arr[$i+10]; $arr[$i+10]=$arr[$i+1]; $arr[$i+1]=$tmp; } echo("\n"); for($i=0;$i<count($arr);$i++){ echo($arr[$i]." "); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 22
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 22
Branch analysis from position: 29
Branch analysis from position: 22
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/uuMSi
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arr, !1 = $i, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    5     3    >   ECHO                                                     'loop+'
    6     4        ADD                                              ~5      !1, 10
          5        FETCH_DIM_R                                      ~6      !0, ~5
          6        ASSIGN                                                   !2, ~6
    7     7        ADD                                              ~8      !1, 10
          8        ADD                                              ~10     !1, 1
          9        FETCH_DIM_R                                      ~11     !0, ~10
         10        ASSIGN_DIM                                               !0, ~8
         11        OP_DATA                                                  ~11
    8    12        ADD                                              ~12     !1, 1
         13        ASSIGN_DIM                                               !0, ~12
         14        OP_DATA                                                  !2
    4    15        PRE_INC                                                  !1
         16    >   COUNT                                            ~15     !0
         17        IS_SMALLER                                               !1, ~15
         18      > JMPNZ                                                    ~16, ->3
   10    19    >   ECHO                                                     '%0A'
   12    20        ASSIGN                                                   !1, 0
         21      > JMP                                                      ->26
   13    22    >   FETCH_DIM_R                                      ~18     !0, !1
         23        CONCAT                                           ~19     ~18, '++'
         24        ECHO                                                     ~19
   12    25        PRE_INC                                                  !1
         26    >   COUNT                                            ~21     !0
         27        IS_SMALLER                                               !1, ~21
         28      > JMPNZ                                                    ~22, ->22
   15    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.91 ms | 1399 KiB | 13 Q