3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; var_dump(spl_object_hash(new Foo)); var_dump(spl_object_hash((object) [])); 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/fnsaD
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'spl_object_hash'
          2        NEW                                              $0      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'spl_object_hash'
         10        CAST                                          8  ~4      <array>
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'spl_object_hash'
         17        NEW                                              $7      'stdClass'
         18        DO_FCALL                                      0          
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.65 ms | 1386 KiB | 17 Q