3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a','b','c','d','e','f']; $b = ['a','e']; $dic = array_flip($b); $result = array_filter($a, function($v)use($dic){return !isset($dic[$v]);}); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1C5q
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $dic, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_flip'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    6     6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                          ~8      [0]
          9        BIND_LEXICAL                                             ~8, !2
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
    7    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1C5q
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $v, !1 = $dic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !1, !0
          3        BOOL_NOT                                         ~3      ~2
          4      > RETURN                                                   ~3
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1004 KiB | 16 Q