3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IMyInterface1 { public function test(array $params); } interface IMyInterface2 { public function test($t); } abstract class MyClass implements IMyInterface1, IMyInterface2 { public function test(array $params) { echo '1'; } } /* class MyClass implements IMyInterface1, IMyInterface2 { public function test(array $params) { echo '1'; } } $v = new MyClass; $v->test(array()); */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9DMT2
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'myclass'
   27     1      > RETURN                                                   1

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

End of function test

End of class IMyInterface1.

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

End of function test

End of class IMyInterface2.

Class MyClass:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9DMT2
function name:  test
number of ops:  3
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ECHO                                                     '1'
   15     2      > RETURN                                                   null

End of function test

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.93 ms | 1393 KiB | 13 Q