3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class T { var $Test; function __construct(){ $k = "Test"; $this-${k} = "?"; } } $y = new T(); echo $y->Test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qDqbE
function name:  (null)
number of ops:  6
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'T'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        FETCH_OBJ_R                                      ~4      !0, 'Test'
          4        ECHO                                                     ~4
          5      > RETURN                                                   1

Class T:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qDqbE
function name:  __construct
number of ops:  8
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'Test'
    6     1        FETCH_THIS                                       ~2      
          2        FETCH_CONSTANT                                   ~3      'k'
          3        FETCH_W                      local               $4      ~3
          4        ASSIGN                                           ~5      $4, '%3F'
          5        SUB                                              ~6      ~2, ~5
          6        FREE                                                     ~6
    7     7      > RETURN                                                   null

End of function __construct

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.31 ms | 1393 KiB | 13 Q