3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $kaas; public function __construct() { $this->kaas = 'A'; } public function getKaas() { return $this->kaas; } } $b = new A(); $c = $b->getKaas(); echo "{$c}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EV1Xf
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   17     3        INIT_METHOD_CALL                                         !0, 'getKaas'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   19     6        CAST                                          6  ~7      !1
          7        ECHO                                                     ~7
          8      > RETURN                                                   1

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

End of function __construct

Function getkaas:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EV1Xf
function name:  getKaas
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'kaas'
          1      > RETURN                                                   ~0
   12     2*     > RETURN                                                   null

End of function getkaas

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.78 ms | 1393 KiB | 13 Q