3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface One { function callme(string $data): void; } interface Two { function callme(int $data): void; } class C implements One, Two { /** @param mixed $_p */ public function callme($_p): void {} } function oneone(One $one): void { $one->callme("data"); } function twotwo(Two $two): void { $two->callme(42); } $c = new C; oneone($c); twotwo($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doUaY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                                'c'
   19     1        NEW                                                  $1      'C'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   20     4        INIT_FCALL                                                   'oneone'
          5        SEND_VAR                                                     !0
          6        DO_FCALL                                          0          
   21     7        INIT_FCALL                                                   'twotwo'
          8        SEND_VAR                                                     !0
          9        DO_FCALL                                          0          
         10      > RETURN                                                       1

Function oneone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doUaY
function name:  oneone
number of ops:  5
compiled vars:  !0 = $one
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   RECV                                                 !0      
          1        INIT_METHOD_CALL                                             !0, 'callme'
          2        SEND_VAL_EX                                                  'data'
          3        DO_FCALL                                          0          
          4      > RETURN                                                       null

End of function oneone

Function twotwo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doUaY
function name:  twotwo
number of ops:  5
compiled vars:  !0 = $two
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   RECV                                                 !0      
          1        INIT_METHOD_CALL                                             !0, 'callme'
          2        SEND_VAL_EX                                                  42
          3        DO_FCALL                                          0          
          4      > RETURN                                                       null

End of function twotwo

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

End of function callme

End of class One.

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

End of function callme

End of class Two.

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

End of function callme

End of class C.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.52 ms | 2108 KiB | 15 Q