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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.84 ms | 1395 KiB | 13 Q