3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function execute(); } class bar extends PDOStatement implements foo { function execute() { print'execute'; parent::execute(); } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKRdv
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'bar', 'pdostatement'
   11     1      > RETURN                                                   1

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

End of function execute

End of class foo.

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

End of function execute

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.34 ms | 1393 KiB | 13 Q