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)-2;$i+=2,$j++){ $arr[$i]=$tmp0; $tmp0 = $arr[$i+1]; echo(" tmp0: ".$tmp0); $arr[$i+1]=$tmp1; $tmp1 = $arr[$j+1]; echo(" tmp1: ".$tmp1); } echo("\n"); 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 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 9
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 33
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 33
Branch analysis from position: 40
Branch analysis from position: 33
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 9
Branch analysis from position: 30
Branch analysis from position: 9
filename:       /in/Ked1J
function name:  (null)
number of ops:  41
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                                                      ->26
    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        CONCAT                                           ~18     '++tmp0%3A+', !1
         15        ECHO                                                     ~18
   11    16        ADD                                              ~19     !4, 1
         17        ASSIGN_DIM                                               !0, ~19
         18        OP_DATA                                                  !2
   12    19        ADD                                              ~21     !5, 1
         20        FETCH_DIM_R                                      ~22     !0, ~21
         21        ASSIGN                                                   !2, ~22
   13    22        CONCAT                                           ~24     '+tmp1%3A+', !2
         23        ECHO                                                     ~24
    7    24        ASSIGN_OP                                     1          !4, 2
         25        PRE_INC                                                  !5
         26    >   COUNT                                            ~27     !0
         27        SUB                                              ~28     ~27, 2
         28        IS_SMALLER                                               !4, ~28
         29      > JMPNZ                                                    ~29, ->9
   16    30    >   ECHO                                                     '%0A'
   18    31        ASSIGN                                                   !4, 0
         32      > JMP                                                      ->37
   19    33    >   FETCH_DIM_R                                      ~31     !0, !4
         34        CONCAT                                           ~32     ~31, '++'
         35        ECHO                                                     ~32
   18    36        PRE_INC                                                  !4
         37    >   COUNT                                            ~34     !0
         38        IS_SMALLER                                               !4, ~34
         39      > JMPNZ                                                    ~35, ->33
   21    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.27 ms | 1399 KiB | 13 Q