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+=2){ if($i>0){ $arr[$i]=$tmp2; } $tmp = $arr[$i+10]; $tmp2 = $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 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
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 = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
Branch analysis from position: 7
filename:       /in/gAChv
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arr, !1 = $i, !2 = $tmp2, !3 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
    5     3    >   IS_SMALLER                                               0, !1
          4      > JMPZ                                                     ~6, ->7
    6     5    >   ASSIGN_DIM                                               !0, !1
          6        OP_DATA                                                  !2
    8     7    >   ADD                                              ~8      !1, 10
          8        FETCH_DIM_R                                      ~9      !0, ~8
          9        ASSIGN                                                   !3, ~9
    9    10        ADD                                              ~11     !1, 1
         11        FETCH_DIM_R                                      ~12     !0, ~11
         12        ASSIGN                                                   !2, ~12
   10    13        ADD                                              ~14     !1, 1
         14        ASSIGN_DIM                                               !0, ~14
         15        OP_DATA                                                  !3
    4    16        ASSIGN_OP                                     1          !1, 2
         17    >   COUNT                                            ~17     !0
         18        IS_SMALLER                                               !1, ~17
         19      > JMPNZ                                                    ~18, ->3
   14    20    >   ASSIGN                                                   !1, 0
         21      > JMP                                                      ->26
   15    22    >   FETCH_DIM_R                                      ~20     !0, !1
         23        CONCAT                                           ~21     ~20, '++'
         24        ECHO                                                     ~21
   14    25        PRE_INC                                                  !1
         26    >   COUNT                                            ~23     !0
         27        IS_SMALLER                                               !1, ~23
         28      > JMPNZ                                                    ~24, ->22
   17    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.5 ms | 1395 KiB | 13 Q