3v4l.org

run code in 300+ PHP versions simultaneously
<?php $repo = new SplObjectStorage(); $key1 = new StdClass(); var_dump(spl_object_hash($key1)); var_dump(spl_object_hash(new StdClass()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/73bjB
function name:  (null)
number of ops:  21
compiled vars:  !0 = $repo, !1 = $key1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        NEW                                              $5      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    6     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'spl_object_hash'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'spl_object_hash'
         14        NEW                                              $10     'StdClass'
         15        DO_FCALL                                      0          
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $12     
         18        SEND_VAR                                                 $12
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.51 ms | 1395 KiB | 17 Q