3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1387 KiB | 15 Q