3v4l.org

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

Class foo:
Function execute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Eu72
function name:  execute
number of ops:  2
compiled vars:  !0 = $bound_input_params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1      > 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/6Eu72
function name:  execute
number of ops:  6
compiled vars:  !0 = $bound_input_params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
    7     1        ECHO                                                     'execute'
    8     2        INIT_STATIC_METHOD_CALL                                  'execute'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
    9     5      > RETURN                                                   null

End of function execute

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.77 ms | 1394 KiB | 13 Q