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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.98 ms | 1395 KiB | 13 Q