3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public $name=123456; function c(){ $a="this"; echo $aa; echo $$a->name; } } $aa=new A(); $aa->c();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmiHW
function name:  (null)
number of ops:  6
compiled vars:  !0 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'c'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class A:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmiHW
function name:  c
number of ops:  6
compiled vars:  !0 = $a, !1 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'this'
    6     1        ECHO                                                     !1
    7     2        FETCH_R                      local               ~3      !0
          3        FETCH_OBJ_R                                      ~4      ~3, 'name'
          4        ECHO                                                     ~4
    8     5      > RETURN                                                   null

End of function c

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.87 ms | 938 KiB | 14 Q