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)-10;$i++){ $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 = 15
Branch analysis from position: 15
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/1Y5v1
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                                                      ->15
    5     3    >   ADD                                              ~5      !1, 10
          4        FETCH_DIM_R                                      ~6      !0, ~5
          5        ASSIGN                                                   !2, ~6
    6     6        ADD                                              ~8      !1, 10
          7        ADD                                              ~10     !1, 1
          8        FETCH_DIM_R                                      ~11     !0, ~10
          9        ASSIGN_DIM                                               !0, ~8
         10        OP_DATA                                                  ~11
    7    11        ADD                                              ~12     !1, 1
         12        ASSIGN_DIM                                               !0, ~12
         13        OP_DATA                                                  !2
    4    14        PRE_INC                                                  !1
         15    >   COUNT                                            ~15     !0
         16        SUB                                              ~16     ~15, 10
         17        IS_SMALLER                                               !1, ~16
         18      > JMPNZ                                                    ~17, ->3
    9    19    >   ECHO                                                     '%0A'
   11    20        ASSIGN                                                   !1, 0
         21      > JMP                                                      ->26
   12    22    >   FETCH_DIM_R                                      ~19     !0, !1
         23        CONCAT                                           ~20     ~19, '++'
         24        ECHO                                                     ~20
   11    25        PRE_INC                                                  !1
         26    >   COUNT                                            ~22     !0
         27        IS_SMALLER                                               !1, ~22
         28      > JMPNZ                                                    ~23, ->22
   14    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.03 ms | 1395 KiB | 13 Q