3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->foo = 'hello'; var_dump(spl_object_hash($a)); $b = new stdClass; $b->foo = 'world'; var_dump(spl_object_hash($b)); $c = new stdClass; $c->foo = 'hello'; var_dump(spl_object_hash($c)); unset($c); // <= important $d = new stdClass; $d->foo = 'world'; var_dump(spl_object_hash($d));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PF2Ug
function name:  (null)
number of ops:  46
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'hello'
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'spl_object_hash'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                                 
    7    11        NEW                                              $10     'stdClass'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $10
    8    14        ASSIGN_OBJ                                               !1, 'foo'
         15        OP_DATA                                                  'world'
    9    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'spl_object_hash'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $14     
         20        SEND_VAR                                                 $14
         21        DO_ICALL                                                 
   11    22        NEW                                              $16     'stdClass'
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !2, $16
   12    25        ASSIGN_OBJ                                               !2, 'foo'
         26        OP_DATA                                                  'hello'
   13    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'spl_object_hash'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $20     
         31        SEND_VAR                                                 $20
         32        DO_ICALL                                                 
   14    33        UNSET_CV                                                 !2
   16    34        NEW                                              $22     'stdClass'
         35        DO_FCALL                                      0          
         36        ASSIGN                                                   !3, $22
   17    37        ASSIGN_OBJ                                               !3, 'foo'
         38        OP_DATA                                                  'world'
   18    39        INIT_FCALL                                               'var_dump'
         40        INIT_FCALL                                               'spl_object_hash'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                         $26     
         43        SEND_VAR                                                 $26
         44        DO_ICALL                                                 
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.27 ms | 1400 KiB | 17 Q