3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); class TestClass { public int $a; } $test = new TestClass(); $string = 'foo'; $test->int = &$string; var_dump($test->int); $test->int = []; var_dump($test->int);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F6pnT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $2      'TestClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    9     3        ASSIGN                                                       !1, 'foo'
   10     4        ASSIGN_OBJ_REF                                               !0, 'int'
          5        OP_DATA                                                      !1
   11     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_OBJ_R                                          ~7      !0, 'int'
          8        SEND_VAL                                                     ~7
          9        DO_ICALL                                                     
   12    10        ASSIGN_OBJ                                                   !0, 'int'
         11        OP_DATA                                                      <array>
   13    12        INIT_FCALL                                                   'var_dump'
         13        FETCH_OBJ_R                                          ~10     !0, 'int'
         14        SEND_VAL                                                     ~10
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Class TestClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.78 ms | 1986 KiB | 14 Q