3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface superbase { public static function ball(); public static function foo(); } abstract class base implements superbase { public static function ball(){ echo 'superbaseball'; } public static function foo(){ echo 'foo'; } } class child extends base{ public static function ball(){ echo 'baseball'; } } child::foo(); child::ball();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FUsZE
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'base'
   14     1        DECLARE_CLASS                                            'child', 'base'
   24     2        INIT_STATIC_METHOD_CALL                                  'child', 'foo'
          3        DO_FCALL                                      0          
   26     4        INIT_STATIC_METHOD_CALL                                  'child', 'ball'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function ball

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

End of function foo

End of class superbase.

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

End of function ball

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

End of function foo

End of class base.

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

End of function ball

End of class child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1395 KiB | 13 Q