3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = $bar = new \stdClass; $baz = new \stdClass; $a = array( $foo, $bar, $baz ); var_dump(array_unique($a, SORT_REGULAR)); var_dump(array_unique($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DeHIj
function name:  (null)
number of ops:  25
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                           ~6      !1, $4
          3        ASSIGN                                                   !0, ~6
    4     4        NEW                                              $8      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !2, $8
    7     7        INIT_ARRAY                                       ~11     !0
    8     8        ADD_ARRAY_ELEMENT                                ~11     !1
    9     9        ADD_ARRAY_ELEMENT                                ~11     !2
    6    10        ASSIGN                                                   !3, ~11
   12    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_unique'
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 0
         15        DO_ICALL                                         $13     
         16        SEND_VAR                                                 $13
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'array_unique'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.42 ms | 1395 KiB | 17 Q