3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; print spl_object_hash($a) ."\n"; unset($a); $a = new stdClass; print spl_object_hash($a) ."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gIPtB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_FCALL                                               'spl_object_hash'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      $4, '%0A'
          7        ECHO                                                     ~5
    4     8        UNSET_CV                                                 !0
    5     9        NEW                                              $6      'stdClass'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $6
    6    12        INIT_FCALL                                               'spl_object_hash'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     $9, '%0A'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1398 KiB | 15 Q