3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Config { //declare variables private $kmailtext; function __construct() { $this->kmailtext = "Mail ons"; } public function __get($name) { return $this->$name; } } $config = new Config(); echo $this->kmailtext;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipFNh
function name:  (null)
number of ops:  7
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Config'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        FETCH_THIS                                       $4      
          4        FETCH_OBJ_R                                      ~5      $4, 'kmailtext'
          5        ECHO                                                     ~5
          6      > RETURN                                                   1

Class Config:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipFNh
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'kmailtext'
          1        OP_DATA                                                  'Mail+ons'
   10     2      > RETURN                                                   null

End of function __construct

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipFNh
function name:  __get
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        FETCH_OBJ_R                                      ~1      !0
          2      > RETURN                                                   ~1
   14     3*     > RETURN                                                   null

End of function __get

End of class Config.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157 ms | 1394 KiB | 13 Q