3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exception = new \exception(uniqid()); $reference = & $exception; var_dump(spl_object_hash($reference) === spl_object_hash($exception)); var_dump(spl_object_hash($reference) === spl_object_hash($exception = new \exception(uniqid()))); $exception = spl_object_hash($exception = new \exception(uniqid())); var_dump(spl_object_hash($reference) === spl_object_hash($exception));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/noTcb
function name:  (null)
number of ops:  54
compiled vars:  !0 = $exception, !1 = $reference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'exception'
          1        INIT_FCALL                                               'uniqid'
          2        DO_ICALL                                         $3      
          3        SEND_VAR_NO_REF_EX                                       $3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    5     6        ASSIGN_REF                                               !1, !0
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'spl_object_hash'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        INIT_FCALL                                               'spl_object_hash'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        IS_IDENTICAL                                     ~9      $7, $8
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'spl_object_hash'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $11     
         21        INIT_FCALL                                               'spl_object_hash'
         22        NEW                                              $12     'exception'
         23        INIT_FCALL                                               'uniqid'
         24        DO_ICALL                                         $13     
         25        SEND_VAR_NO_REF_EX                                       $13
         26        DO_FCALL                                      0          
         27        ASSIGN                                           ~15     !0, $12
         28        SEND_VAL                                                 ~15
         29        DO_ICALL                                         $16     
         30        IS_IDENTICAL                                     ~17     $11, $16
         31        SEND_VAL                                                 ~17
         32        DO_ICALL                                                 
   10    33        INIT_FCALL                                               'spl_object_hash'
         34        NEW                                              $19     'exception'
         35        INIT_FCALL                                               'uniqid'
         36        DO_ICALL                                         $20     
         37        SEND_VAR_NO_REF_EX                                       $20
         38        DO_FCALL                                      0          
         39        ASSIGN                                           ~22     !0, $19
         40        SEND_VAL                                                 ~22
         41        DO_ICALL                                         $23     
         42        ASSIGN                                                   !0, $23
   11    43        INIT_FCALL                                               'var_dump'
         44        INIT_FCALL                                               'spl_object_hash'
         45        SEND_VAR                                                 !1
         46        DO_ICALL                                         $25     
         47        INIT_FCALL                                               'spl_object_hash'
         48        SEND_VAR                                                 !0
         49        DO_ICALL                                         $26     
         50        IS_IDENTICAL                                     ~27     $25, $26
         51        SEND_VAL                                                 ~27
         52        DO_ICALL                                                 
         53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.43 ms | 1400 KiB | 19 Q