3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cars = [ [ 'id' => 1, 'icon' => 'sim', ], [ 'id' => 2, 'icon' => 'airtime', ], [ 'id' => 3, 'icon' => 'sim', ], # This is the same as the first [ 'id' => 1, 'icon' => 'sim', ], ]; echo json_encode(array_unique($cars, SORT_REGULAR));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3sRDD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $cars
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   23     1        INIT_FCALL                                                   'json_encode'
          2        INIT_FCALL                                                   'array_unique'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     0
          5        DO_ICALL                                             $2      
          6        SEND_VAR                                                     $2
          7        DO_ICALL                                             $3      
          8        ECHO                                                         $3
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.92 ms | 1862 KiB | 15 Q