3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parenta{ protected $menu; public function __construct(){ $this->menu = 'fuck'; } } class Child extends Parenta{ public function __construct(){ parent::__construct(); var_dump($this->$menu); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHcBo
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

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

End of function __construct

End of class Parenta.

Class Child:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHcBo
function name:  __construct
number of ops:  7
compiled vars:  !0 = $menu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   12     2        INIT_FCALL                                               'var_dump'
          3        FETCH_OBJ_R                                      ~2      !0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   13     6      > RETURN                                                   null

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1386 KiB | 15 Q