3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $test = 'test'; } $a = 'hello'; $t = new test; $t->test =& $a; $a = 'nowe'; var_dump($t); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eYapH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'hello'
    9     1        NEW                                              $3      'test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   11     4        ASSIGN_OBJ_REF                                           !1, 'test'
          5        OP_DATA                                                  !0
   13     6        ASSIGN                                                   !0, 'nowe'
   15     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   17    10      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1394 KiB | 15 Q