3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FkgtO
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $0      'stdClass'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
    7     3*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.74 ms | 1403 KiB | 23 Q