3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types = 1); class Dvach { public function allou (): void { echo $this->childProp; } } class Mailach extends Dvach { protected int $childProp = 100500; } $o = new Mailach(); $o->allou();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RjMCt
function name:  (null)
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   NEW                                                  $1      'Mailach'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   15     3        INIT_METHOD_CALL                                             !0, 'allou'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class Dvach:
Function allou:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RjMCt
function name:  allou
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                          ~0      'childProp'
          1        ECHO                                                         ~0
    7     2      > RETURN                                                       null

End of function allou

End of class Dvach.

Class Mailach:
Function allou:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RjMCt
function name:  allou
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                          ~0      'childProp'
          1        ECHO                                                         ~0
    7     2      > RETURN                                                       null

End of function allou

End of class Mailach.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.83 ms | 1578 KiB | 13 Q