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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.69 ms | 1395 KiB | 13 Q