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++){ $tmp = $arr[$i+10]; $arr[$i+10]=$arr[$i+1]; $arr[$i+1]=$tmp; } 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 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 20
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 20
Branch analysis from position: 27
Branch analysis from position: 20
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/n4mTK
function name:  (null)
number of ops:  28
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
    6     3    >   ADD                                              ~5      !1, 10
          4        FETCH_DIM_R                                      ~6      !0, ~5
          5        ASSIGN                                                   !2, ~6
    7     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
    8    11        ADD                                              ~12     !1, 1
         12        ASSIGN_DIM                                               !0, ~12
         13        OP_DATA                                                  !2
    4    14        PRE_INC                                                  !1
         15    >   COUNT                                            ~15     !0
         16        IS_SMALLER                                               !1, ~15
         17      > JMPNZ                                                    ~16, ->3
   13    18    >   ASSIGN                                                   !1, 0
         19      > JMP                                                      ->24
   14    20    >   FETCH_DIM_R                                      ~18     !0, !1
         21        CONCAT                                           ~19     ~18, '++'
         22        ECHO                                                     ~19
   13    23        PRE_INC                                                  !1
         24    >   COUNT                                            ~21     !0
         25        IS_SMALLER                                               !1, ~21
         26      > JMPNZ                                                    ~22, ->20
   16    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.41 ms | 1395 KiB | 13 Q