3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("te","yes","we","no","1","sdfsdf","Resolved"); $array2 = array("another","no","we","no","0","sdfsdf","Unresolved"); foreach($array1 as $k=>$v){ $value = $v; $key = $k; if(in_array($value,$array2)){ if(array_key_exists($key,$array2)){ echo "1"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/gKpm6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array1, !1 = $array2, !2 = $v, !3 = $k, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $8      !0, ->16
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->16
          4    >   ASSIGN                                                   !3, ~9
    7     5        ASSIGN                                                   !4, !2
    8     6        ASSIGN                                                   !5, !3
   10     7        INIT_FCALL                                               'in_array'
          8        SEND_VAR                                                 !4
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $13     
         11      > JMPZ                                                     $13, ->15
   11    12    >   ARRAY_KEY_EXISTS                                         !5, !1
         13      > JMPZ                                                     ~14, ->15
   12    14    >   ECHO                                                     '1'
    6    15    > > JMP                                                      ->3
         16    >   FE_FREE                                                  $8
   15    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1386 KiB | 15 Q