3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {}; $a = new A; $b = new A; $c = $a; //$b->t = 1; var_dump(spl_object_hash($a)); var_dump(spl_object_hash($b)); var_dump(spl_object_hash($c)); $aa = [$a, $b]; var_dump(in_array($c, $aa, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7g7iY
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $4      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    6     3        NEW                                              $7      'A'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    7     6        ASSIGN                                                   !2, !0
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'spl_object_hash'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $11     
         11        SEND_VAR                                                 $11
         12        DO_ICALL                                                 
   11    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'spl_object_hash'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $13     
         17        SEND_VAR                                                 $13
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'spl_object_hash'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $15     
         23        SEND_VAR                                                 $15
         24        DO_ICALL                                                 
   14    25        INIT_ARRAY                                       ~17     !0
         26        ADD_ARRAY_ELEMENT                                ~17     !1
         27        ASSIGN                                                   !3, ~17
   16    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'in_array'
         30        SEND_VAR                                                 !2
         31        SEND_VAR                                                 !3
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $19     
         34        SEND_VAR                                                 $19
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.22 ms | 1388 KiB | 19 Q