3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x; private $y; private $z; public function __constructor() { $this->x = 100; $this->y = 20; $this->z = 30; } public function _get($k) { echo $this->x; return $this->$k; } } $t = new Test(); echo $t->x . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RaL93
function name:  (null)
number of ops:  7
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        FETCH_OBJ_R                                      ~4      !0, 'x'
          4        CONCAT                                           ~5      ~4, '%0A'
          5        ECHO                                                     ~5
          6      > RETURN                                                   1

Class Test:
Function __constructor:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RaL93
function name:  __constructor
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               'x'
          1        OP_DATA                                                  100
   12     2        ASSIGN_OBJ                                               'y'
          3        OP_DATA                                                  20
   13     4        ASSIGN_OBJ                                               'z'
          5        OP_DATA                                                  30
   14     6      > RETURN                                                   null

End of function __constructor

Function _get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RaL93
function name:  _get
number of ops:  6
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        FETCH_OBJ_R                                      ~1      'x'
          2        ECHO                                                     ~1
   19     3        FETCH_OBJ_R                                      ~2      !0
          4      > RETURN                                                   ~2
   20     5*     > RETURN                                                   null

End of function _get

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.89 ms | 1394 KiB | 13 Q