3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Vehicle { public function go() { print("Vehicle go"); $this->tires(); } public function tires() { print("Vehicle tires"); } } class Car extends Vehicle { public function tires() { print("Car tires"); } } class Lambo extends Car { } $l = new Lambo(); $l->go();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcr8e
function name:  (null)
number of ops:  6
compiled vars:  !0 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   NEW                                              $1      'Lambo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   30     3        INIT_METHOD_CALL                                         !0, 'go'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function go

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

End of function tires

End of class Vehicle.

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

End of function tires

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

End of function go

End of class Car.

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

End of function tires

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

End of function go

End of class Lambo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.11 ms | 1399 KiB | 13 Q