3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [ [ [ 'foo' => 'bar', 'foobar' => 'foo' ], [ 'foo' => 'bar', 'foobar' => 'foo' ], [ 'foo' => 'bar', 'foobar' => 'foo' ], [ 'foo' => 'foo', 'foobar' => 'bar' ], [ 'foo' => 'foo', 'foobar' => 'bar' ], [ 'foo' => 'foo', 'foobar' => 'bar' ] ] ]; $result = array_map(function($x) { return array_unique($x, SORT_REGULAR); }, $data); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h11Ra
function name:  (null)
number of ops:  11
compiled vars:  !0 = $data, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   32     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
   34     3        SEND_VAL                                                     ~3
          4        SEND_VAR                                                     !0
   32     5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
   36     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > 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/h11Ra
function name:  {closure:/in/h11Ra:32}
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   32     0  E >   RECV                                                 !0      
   33     1        INIT_FCALL                                                   'array_unique'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     0
          4        DO_ICALL                                             $1      
          5      > RETURN                                                       $1
   34     6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
181.06 ms | 2680 KiB | 16 Q