3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; var_dump(std_object_hash(new Foo)); var_dump(std_object_hash((object) [])); var_dump(std_object_hash(new \stdObject));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGEsX
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_BY_NAME                                       'std_object_hash'
          2        NEW                                              $0      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL_BY_NAME                                       'std_object_hash'
         10        CAST                                          8  ~4      <array>
         11        SEND_VAL_EX                                              ~4
         12        DO_FCALL                                      0  $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL_BY_NAME                                       'std_object_hash'
         17        NEW                                              $7      'stdObject'
         18        DO_FCALL                                      0          
         19        SEND_VAR_NO_REF_EX                                       $7
         20        DO_FCALL                                      0  $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:
162.7 ms | 1386 KiB | 15 Q