3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array('a' => 123, 'b' => 213, 'c' => 321); $allowed = array_flip(['c','d']); echo json_encode(! array_diff_key($allowed, $arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/svno0
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $allowed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'array_flip'
          2        SEND_VAL                                                     <array>
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    5     5        INIT_FCALL                                                   'json_encode'
          6        INIT_FCALL                                                   'array_diff_key'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $5      
         10        BOOL_NOT                                             ~6      $5
         11        SEND_VAL                                                     ~6
         12        DO_ICALL                                             $7      
         13        ECHO                                                         $7
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.41 ms | 2568 KiB | 16 Q