3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base{ function hello(){ echo "hello "; $this->world(); } function world(){ echo "world"; } } class Derived extends Base{ function world(){ echo "World!!!!!"; } } $x = new Derived(); $x->hello();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChTkV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Derived'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'hello'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Base:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChTkV
function name:  hello
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'hello+'
    5     1        INIT_METHOD_CALL                                         'world'
          2        DO_FCALL                                      0          
    6     3      > RETURN                                                   null

End of function hello

Function world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChTkV
function name:  world
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'world'
   10     1      > RETURN                                                   null

End of function world

End of class Base.

Class Derived:
Function world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChTkV
function name:  world
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'World%21%21%21%21%21'
   15     1      > RETURN                                                   null

End of function world

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChTkV
function name:  hello
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'hello+'
    5     1        INIT_METHOD_CALL                                         'world'
          2        DO_FCALL                                      0          
    6     3      > RETURN                                                   null

End of function hello

End of class Derived.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.57 ms | 1386 KiB | 13 Q