3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Parenta{ protected $menu; public function __construct(){ $this->menu = 'fuck'; } } class Child extends Parenta{ public function __construct(){ parent::__construct(); var_dump($this->$menu); } }
based on dUDaV
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/hHcBo
function name:  (null)
number of ops:  4
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   9     1        NOP                                                      
         2        NOP                                                      
  14     3      > RETURN                                                   1

Class Parenta:
Function __construct:
Finding entry points
Branch analysis from position: 0
Jump found. 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
Jump found. Position 1 = -2
filename:       /in/hHcBo
function name:  __construct
number of ops:  8
compiled vars:  !0 = $menu
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  11     0  E >   FETCH_CLASS                                 514  :1      
         1        INIT_STATIC_METHOD_CALL                                  $1
         2        DO_FCALL                                      0          
  12     3        INIT_FCALL                                               'var_dump'
         4        FETCH_OBJ_R                                      $3      !0
         5        SEND_VAR                                                 $3
         6        DO_ICALL                                                 
  13     7      > RETURN                                                   null

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 7.2.0