3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8); for ($c = count($arr), $i = 1; $i < $c; $i++) $arr[0] ^= $arr[i]; echo $arr[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/mVEi3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $c, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~4      !0
          2        ASSIGN                                                   !1, ~4
          3        ASSIGN                                                   !2, 1
          4      > JMP                                                      ->10
          5    >   FETCH_CONSTANT                                   ~8      'i'
          6        FETCH_DIM_R                                      ~9      !0, ~8
          7        ASSIGN_DIM_OP                ^=              11          !0, 0
          8        OP_DATA                                                  ~9
          9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, !1
         11      > JMPNZ                                                    ~11, ->5
    4    12    >   FETCH_DIM_R                                      ~12     !0, 0
         13        ECHO                                                     ~12
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145 ms | 1393 KiB | 13 Q