3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instance = new StdClass(); $assigned = $instance; $reference =& $instance; $instance->var = '$assigned будет иметь это значение'; $instance = new StdClass(); // $instance и $reference становятся null var_dump($instance); var_dump($reference); var_dump($assigned); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/foBai
function name:  (null)
number of ops:  20
compiled vars:  !0 = $instance, !1 = $assigned, !2 = $reference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN                                                   !1, !0
    6     4        ASSIGN_REF                                               !2, !0
    8     5        ASSIGN_OBJ                                               !0, 'var'
          6        OP_DATA                                                  '%24assigned+%D0%B1%D1%83%D0%B4%D0%B5%D1%82+%D0%B8%D0%BC%D0%B5%D1%82%D1%8C+%D1%8D%D1%82%D0%BE+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5'
   10     7        NEW                                              $9      'StdClass'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $9
   12    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
   14    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   15    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1386 KiB | 15 Q