3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [1, 2, 3]; $b = [3, 4, 5]; $result = [1, 3]; var_export( $result[0] !== $result[1] && ( (in_array($result[0], $a) && in_array($result[1], $b)) || (in_array($result[0], $b) && in_array($result[1], $a)) ) );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
Branch analysis from position: 14
Branch analysis from position: 23
filename:       /in/JVuSB
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    7     3        INIT_FCALL                                                   'var_export'
    8     4        FETCH_DIM_R                                          ~6      !2, 0
          5        FETCH_DIM_R                                          ~7      !2, 1
          6        IS_NOT_IDENTICAL                                     ~8      ~6, ~7
          7      > JMPZ_EX                                              ~8      ~8, ->23
   10     8    >   FETCH_DIM_R                                          ~9      !2, 0
          9        FRAMELESS_ICALL_2                in_array            ~10     ~9, !0
         10      > JMPZ_EX                                              ~10     ~10, ->14
         11    >   FETCH_DIM_R                                          ~11     !2, 1
         12        FRAMELESS_ICALL_2                in_array            ~12     ~11, !1
         13        BOOL                                                 ~10     ~12
         14    > > JMPNZ_EX                                             ~10     ~10, ->22
   11    15    >   FETCH_DIM_R                                          ~13     !2, 0
         16        FRAMELESS_ICALL_2                in_array            ~14     ~13, !1
         17      > JMPZ_EX                                              ~14     ~14, ->21
         18    >   FETCH_DIM_R                                          ~15     !2, 1
         19        FRAMELESS_ICALL_2                in_array            ~16     ~15, !0
         20        BOOL                                                 ~14     ~16
         21    >   BOOL                                                 ~10     ~14
         22    >   BOOL                                                 ~8      ~10
         23    >   SEND_VAL                                                     ~8
    7    24        DO_ICALL                                                     
   13    25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.96 ms | 1876 KiB | 14 Q