3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aMbs = [ ['ID' => 1, 'Name' => 'Standard'], ['ID' => 2, 'Name' => 'Silver'], ['ID' => 3, 'Name' => 'Gold'], ['ID' => 4, 'Name' => 'Platinum'], ['ID' => 5, 'Name' => 'Unobtainium'], ]; $ignoreArray = [1, 3]; var_export( array_diff_key( array_column($aMbs, 'Name', 'ID'), array_flip($ignoreArray) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hCRiN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $aMbs, !1 = $ignoreArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'var_export'
   14     3        INIT_FCALL                                               'array_diff_key'
   15     4        INIT_FCALL                                               'array_column'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'Name'
          7        SEND_VAL                                                 'ID'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
   16    10        INIT_FCALL                                               'array_flip'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
   14    14        DO_ICALL                                         $6      
   16    15        SEND_VAR                                                 $6
   13    16        DO_ICALL                                                 
   18    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.07 ms | 1012 KiB | 17 Q