3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FindByNameInterface { public function getFindAllByNameSelect(); } interface FetchableInterface { public function fetchAll(Zend_Db_Select $select); } interface FetchableByNameInterface extends FetchableInterface, FindByNameInterface { } class OurGateway implements FetchableByNameInterface { public function fetchAll(Zend_Db_Select $select) {} public function getFindAllByNameSelect() {} } class SomeMapper { protected $gateway; public function __construct(FetchableByNameInterface $someGateway) { $this->gateway = $someGateway; } } new SomeMapper(new OurGateway);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2q1aB
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'fetchablebynameinterface'
   17     1        DECLARE_CLASS                                            'ourgateway'
   37     2        NEW                                              $0      'SomeMapper'
          3        NEW                                              $1      'OurGateway'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0          
          7        FREE                                                     $0
          8      > RETURN                                                   1

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

End of function getfindallbynameselect

End of class FindByNameInterface.

Class FetchableInterface:
Function fetchall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2q1aB
function name:  fetchAll
number of ops:  2
compiled vars:  !0 = $select
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function fetchall

End of class FetchableInterface.

Class FetchableByNameInterface: [no user functions]
Class OurGateway:
Function fetchall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2q1aB
function name:  fetchAll
number of ops:  2
compiled vars:  !0 = $select
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1      > RETURN                                                   null

End of function fetchall

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

End of function getfindallbynameselect

End of class OurGateway.

Class SomeMapper:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2q1aB
function name:  __construct
number of ops:  4
compiled vars:  !0 = $someGateway
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
   33     1        ASSIGN_OBJ                                               'gateway'
          2        OP_DATA                                                  !0
   34     3      > RETURN                                                   null

End of function __construct

End of class SomeMapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1399 KiB | 13 Q