3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( "a", "b", "c" => "def" ), array( "aa", "bb", "cc" => "def" ), array( "a", "b", "c" => "defg" ), array( "aa", "bb", "cc" => "def" ), array( "a", "b", "c" => "def" ), ); var_dump( array_unique( $array, SORT_REGULAR ) ); var_dump( array_intersect_key($array, array_unique(array_map('serialize', $array))) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K7F7q
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_unique'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   14     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_intersect_key'
         10        SEND_VAR                                                 !0
         11        INIT_FCALL                                               'array_unique'
         12        INIT_FCALL                                               'array_map'
         13        SEND_VAL                                                 'serialize'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.2 ms | 1395 KiB | 21 Q