3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mode[0] = array(1, 2, 5, 6); $mode[1] = array(3, 4, 7, 8); for($i=0;$i<2;$i++) { $flipped = array_flip($mode[$i]); print_r($flipped); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/DeIsG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $mode, !1 = $i, !2 = $flipped
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  <array>
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->15
    7     6    >   INIT_FCALL                                               'array_flip'
          7        FETCH_DIM_R                                      ~6      !0, !1
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    8    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    5    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 2
         16      > JMPNZ                                                    ~11, ->6
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1395 KiB | 17 Q