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++){ 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 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 23
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 23
Branch analysis from position: 30
Branch analysis from position: 23
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 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 7
filename:       /in/TTqSB
function name:  (null)
number of ops:  31
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        PRE_INC                                                  !1
         17    >   COUNT                                            ~17     !0
         18        SUB                                              ~18     ~17, 10
         19        IS_SMALLER                                               !1, ~18
         20      > JMPNZ                                                    ~19, ->3
   14    21    >   ASSIGN                                                   !1, 0
         22      > JMP                                                      ->27
   15    23    >   FETCH_DIM_R                                      ~21     !0, !1
         24        CONCAT                                           ~22     ~21, '++'
         25        ECHO                                                     ~22
   14    26        PRE_INC                                                  !1
         27    >   COUNT                                            ~24     !0
         28        IS_SMALLER                                               !1, ~24
         29      > JMPNZ                                                    ~25, ->23
   17    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.94 ms | 1395 KiB | 13 Q