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));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s8Tp2
function name:  (null)
number of ops:  38
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
    8     7        ASSIGN_OBJ                                               !1, 't'
          8        OP_DATA                                                  1
   10     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'spl_object_hash'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $12     
         13        SEND_VAR                                                 $12
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'spl_object_hash'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $14     
         19        SEND_VAR                                                 $14
         20        DO_ICALL                                                 
   12    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'spl_object_hash'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $16     
         25        SEND_VAR                                                 $16
         26        DO_ICALL                                                 
   14    27        INIT_ARRAY                                       ~18     !0
         28        ADD_ARRAY_ELEMENT                                ~18     !1
         29        ASSIGN                                                   !3, ~18
   16    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'in_array'
         32        SEND_VAR                                                 !2
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $20     
         35        SEND_VAR                                                 $20
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.58 ms | 1396 KiB | 19 Q