3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('invoice_duration_id' => 2, 'type' => 'invoice'); $array2 = array('invoice_duration_id' => 2, 'type' => '321'); $array3 = array('invoice_duration_id' => 2, 'type' => 'cod'); //$findDuplicate = array_diff_assoc( // $arr= $array1 + $array2 + $array3, // array_unique($arr) //); $arr= $array1->diff($array2)->count() === 0; var_dump($arr); die(); print_r($findDuplicate); //$result = $array1 + $array2; //var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/VlaAH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $arr, !4 = $findDuplicate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
   13     3        INIT_METHOD_CALL                                         !0, 'diff'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $8      
          6        INIT_METHOD_CALL                                         $8, 'count'
          7        DO_FCALL                                      0  $9      
          8        IS_IDENTICAL                                     ~10     $9, 0
          9        ASSIGN                                                   !3, ~10
   15    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
   16    13      > EXIT                                                     
   18    14*       INIT_FCALL                                               'print_r'
         15*       SEND_VAR                                                 !4
         16*       DO_ICALL                                                 
   21    17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.12 ms | 1010 KiB | 15 Q