3v4l.org

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

Class a: [no user functions]
Class b: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.86 ms | 1395 KiB | 17 Q