3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {}; $a = new A; $b = $a; $c = &$a; $c = new stdClass; var_dump($a, spl_object_hash($a)); var_dump($b, spl_object_hash($b)); var_dump($c, spl_object_hash($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ZrQi
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    6     3        ASSIGN                                                   !1, !0
    7     4        ASSIGN_REF                                               !2, !0
    8     5        NEW                                              $8      'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $8
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'spl_object_hash'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        INIT_FCALL                                               'spl_object_hash'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                                 
   11    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        INIT_FCALL                                               'spl_object_hash'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $15     
         27        SEND_VAR                                                 $15
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1395 KiB | 17 Q