3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('field1' => 'toast', 'field2' => 'butter'); $array2 = array('field1' => 'toast', 'field2' => 'margerine', 'field3' => 'tea'); $keys = array(); print_r(array_diff_key($array1, $array2)); foreach($array2 as $key=>$value) { $t = 0; foreach($array1 as $key2=>$value2) { if($value == $value2) { $t++; } } if($t==0) array_push($keys, $key); } print_r($keys);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 29
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 28
Branch analysis from position: 21
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/4u63E
function name:  (null)
number of ops:  34
compiled vars:  !0 = $array1, !1 = $array2, !2 = $keys, !3 = $value, !4 = $key, !5 = $t, !6 = $value2, !7 = $key2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
   10     2        ASSIGN                                                   !2, <array>
   12     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'array_diff_key'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $11     
          8        SEND_VAR                                                 $11
          9        DO_ICALL                                                 
   14    10      > FE_RESET_R                                       $13     !1, ->29
         11    > > FE_FETCH_R                                       ~14     $13, !3, ->29
         12    >   ASSIGN                                                   !4, ~14
   16    13        ASSIGN                                                   !5, 0
   17    14      > FE_RESET_R                                       $17     !0, ->21
         15    > > FE_FETCH_R                                       ~18     $17, !6, ->21
         16    >   ASSIGN                                                   !7, ~18
   19    17        IS_EQUAL                                                 !3, !6
         18      > JMPZ                                                     ~20, ->20
   21    19    >   PRE_INC                                                  !5
   17    20    > > JMP                                                      ->15
         21    >   FE_FREE                                                  $17
   24    22        IS_EQUAL                                                 !5, 0
         23      > JMPZ                                                     ~22, ->28
   25    24    >   INIT_FCALL                                               'array_push'
         25        SEND_REF                                                 !2
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
   14    28    > > JMP                                                      ->11
         29    >   FE_FREE                                                  $13
   28    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1404 KiB | 20 Q