3v4l.org

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

Class Parenta:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rCl15
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/rCl15
function name:  __construct
number of ops:  7
compiled vars:  none
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                                      ~1      'menu'
          4        SEND_VAL                                                 ~1
          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:
160.15 ms | 1395 KiB | 15 Q