3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass{ public function overriding(){ var_dump(__METHOD__, true); } } class ChildClass extends ParentClass { public function overriding(){ var_dump(__METHOD__, false); } } $child = new ChildClass(); $child->overriding();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p8iiJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'ChildClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'overriding'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class ParentClass:
Function overriding:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p8iiJ
function name:  overriding
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'ParentClass%3A%3Aoverriding'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function overriding

End of class ParentClass.

Class ChildClass:
Function overriding:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p8iiJ
function name:  overriding
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'ChildClass%3A%3Aoverriding'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
   14     4      > RETURN                                                   null

End of function overriding

End of class ChildClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.24 ms | 1395 KiB | 15 Q