3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h1 = spl_object_hash(new stdClass); // the obj is destroyed just after the call $h2 = spl_object_hash(new stdClass); // when the second obj is constructed, the first is destroyed already, so it could happen that the second one getr the same memory address internally var_dump($h1 === $h2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eBLAE
function name:  (null)
number of ops:  17
compiled vars:  !0 = $h1, !1 = $h2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'spl_object_hash'
          1        NEW                                              $2      'stdClass'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    4     6        INIT_FCALL                                               'spl_object_hash'
          7        NEW                                              $6      'stdClass'
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !1, $8
    6    12        INIT_FCALL                                               'var_dump'
         13        IS_IDENTICAL                                     ~10     !0, !1
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.32 ms | 1394 KiB | 17 Q