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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.02 ms | 1395 KiB | 13 Q