3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arrIncome = [ [ 'date' => '01-01-2019', 'total' => '500', ], [ 'date' => '02-01-2019', 'total' => '200', ], [ 'date' => '03-01-2019', 'total' => '300', ], [ 'date' => '04-01-2019', 'total' => '900', ], ]; $arrExpense= [ [ 'date' => '01-01-2019', 'total' => '50', ], [ 'date' => '02-01-2019', 'total' => '60', ], [ 'date' => '07-01-2019', 'total' => '25', ], [ 'date' => '08-01-2019', 'total' => '50', ], ]; $arrExpense = array_filter($arrExpense, function ($v) use ($arrIncome) { return !in_array($v['date'], array_column($arrIncome, 'date')); }); print_r($arrExpense);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Gvg0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arrIncome, !1 = $arrExpense
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   21     1        ASSIGN                                                       !1, <array>
   39     2        INIT_FCALL                                                   'array_filter'
          3        SEND_VAR                                                     !1
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !0
   41     6        SEND_VAL                                                     ~4
   39     7        DO_ICALL                                             $5      
          8        ASSIGN                                                       !1, $5
   42     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > 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/2Gvg0
function name:  {closure:/in/2Gvg0:39}
number of ops:  11
compiled vars:  !0 = $v, !1 = $arrIncome
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   39     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
   40     2        FETCH_DIM_R                                          ~2      !0, 'date'
          3        INIT_FCALL                                                   'array_column'
          4        SEND_VAR                                                     !1
          5        SEND_VAL                                                     'date'
          6        DO_ICALL                                             $3      
          7        FRAMELESS_ICALL_2                in_array            ~4      ~2, $3
          8        BOOL_NOT                                             ~5      ~4
          9      > RETURN                                                       ~5
   41    10*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.21 ms | 2153 KiB | 16 Q