3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function fetch($bound_input_params = NULL); } class bar extends PDOStatement implements foo { function fetch($bound_input_params = NULL) { print'fetch'; parent::fetch($bound_input_params); } } $bar = new bar(); $bar->fetch(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nPfRg
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, 'fetch'
          5        DO_FCALL                                      0          
   13     6      > RETURN                                                   1

Class foo:
Function fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nPfRg
function name:  fetch
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 fetch

End of class foo.

Class bar:
Function fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nPfRg
function name:  fetch
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                                                     'fetch'
    8     2        INIT_STATIC_METHOD_CALL                                  'fetch'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
    9     5      > RETURN                                                   null

End of function fetch

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.19 ms | 1394 KiB | 13 Q