3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ['item' => '39.00', 'time' => '0.00'], ['item' => '49.00'], ['time' => '0.00', 'Value' => 0], ['item' => '49.00', 'time' => '0.00'] ]; $array2 = [ ['item' => '39.00', 'time' => '10.00'], ['item' => '49.00'], ['time' => '0.00', 'Value' => 0], ['item' => '49.00', 'time' => '0.00', 'Value' => 3] ]; var_export( array_filter( array_map( fn($row1, $row2) => array_diff_assoc($row2, $row1) + array_diff_assoc($row1, $row2), $array1, $array2 ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lhuO2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   17     2        INIT_FCALL                                               'var_export'
   18     3        INIT_FCALL                                               'array_filter'
   19     4        INIT_FCALL                                               'array_map'
   20     5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          6        SEND_VAL                                                 ~4
   21     7        SEND_VAR                                                 !0
   22     8        SEND_VAR                                                 !1
   19     9        DO_ICALL                                         $5      
   22    10        SEND_VAR                                                 $5
   18    11        DO_ICALL                                         $6      
   22    12        SEND_VAR                                                 $6
   17    13        DO_ICALL                                                 
   25    14      > 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/lhuO2
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $row1, !1 = $row2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'array_diff_assoc'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'array_diff_assoc'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $3      
         10        ADD                                              ~4      $2, $3
         11      > RETURN                                                   ~4
         12*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.25 ms | 1014 KiB | 17 Q