3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instance = new SimpleClass(); $assigned = $instance; $reference =& $instance; $istance->var = '$assigned avrà questo valore'; $instance = null; // $instance e $reference diventano 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/58k6D
function name:  (null)
number of ops:  18
compiled vars:  !0 = $instance, !1 = $assigned, !2 = $reference, !3 = $istance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'SimpleClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    5     3        ASSIGN                                                   !1, !0
    6     4        ASSIGN_REF                                               !2, !0
    8     5        ASSIGN_OBJ                                               !3, 'var'
          6        OP_DATA                                                  '%24assigned+avr%C3%A0+questo+valore'
   10     7        ASSIGN                                                   !0, null
   12     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   13    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   15    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.9 ms | 1394 KiB | 15 Q