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(); $d = new Dvach(); $d->allou();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gb3O
function name:  (null)
number of ops:  11
compiled vars:  !0 = $o, !1 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   NEW                                                  $2      'Mailach'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   15     3        INIT_METHOD_CALL                                             !0, 'allou'
          4        DO_FCALL                                          0          
   17     5        NEW                                                  $6      'Dvach'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $6
   18     8        INIT_METHOD_CALL                                             !1, 'allou'
          9        DO_FCALL                                          0          
         10      > RETURN                                                       1

Class Dvach:
Function allou:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gb3O
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/0gb3O
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:
179.53 ms | 1590 KiB | 13 Q