3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function fetch($how = NULL, $orientation = NULL, $offset = NULL); } class bar extends PDOStatement implements foo { function fetch($how = NULL, $orientation = NULL, $offset = 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/Wg1Zd
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/Wg1Zd
function name:  fetch
number of ops:  4
compiled vars:  !0 = $how, !1 = $orientation, !2 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
          3      > 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/Wg1Zd
function name:  fetch
number of ops:  8
compiled vars:  !0 = $how, !1 = $orientation, !2 = $offset, !3 = $bound_input_params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
    7     3        ECHO                                                     'fetch'
    8     4        INIT_STATIC_METHOD_CALL                                  'fetch'
          5        SEND_VAR_EX                                              !3
          6        DO_FCALL                                      0          
    9     7      > RETURN                                                   null

End of function fetch

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1385 KiB | 13 Q