3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mergeInfo = array(1 => 2 , 2 => 2 , 3 => 4); $campusAddressIds = array_filter(array_keys($mergeInfo) , function ($key) use ($mergeInfo) { return !in_array($key , $mergeInfo); }); print_r($campusAddressIds);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pahWb
function name:  (null)
number of ops:  15
compiled vars:  !0 = $mergeInfo, !1 = $campusAddressIds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FpahWb%3A3%240'
          7        BIND_LEXICAL                                             ~4, !0
    5     8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
    3    10        ASSIGN                                                   !1, $5
    6    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FpahWb%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pahWb
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $key, !1 = $mergeInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    4     2        INIT_FCALL                                               'in_array'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6        BOOL_NOT                                         ~3      $2
          7      > RETURN                                                   ~3
    5     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FpahWb%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.91 ms | 1387 KiB | 21 Q