3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("AA","BB","CC","DD"); $check1 = array("AA","CC"); $check2 = array("EE","FF"); if(array_intersect($array, $check1)) { echo "Exist"; }else{ echo "Not exist"; } if(array_intersect($array, $check2)) { echo "Exist"; }else{ echo "Not exist"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Branch analysis from position: 18
filename:       /in/NeaNg
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $check1, !2 = $check2
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>
    6     3        INIT_FCALL                                               'array_intersect'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7      > JMPZ                                                     $6, ->10
    7     8    >   ECHO                                                     'Exist'
    6     9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'Not+exist'
   12    11    >   INIT_FCALL                                               'array_intersect'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $7      
         15      > JMPZ                                                     $7, ->18
   13    16    >   ECHO                                                     'Exist'
   12    17      > JMP                                                      ->19
   15    18    >   ECHO                                                     'Not+exist'
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.91 ms | 1002 KiB | 14 Q