3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface interface1 { public function myMethod1(string $param1, int $param2); public function myMethod2(int $param1); } interface interface2 { public function myMethod1(int $param1, string $param2, float $param3); public function myMethod2(float $param1); } class SomeClass implements interface1, interface2 { public function myMethod1(array $param1) { echo "In method2"; var_dump($param1); } public function myMethod2( array $param1, array $param2, array $param3) { echo "In Method2"; var_dump($param1); } } $c = new SomeClass(); $c->myMethod1(); $c->myMethod2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N1T30
function name:  (null)
number of ops:  9
compiled vars:  !0 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                                'someclass'
   24     1        NEW                                                  $1      'SomeClass'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   25     4        INIT_METHOD_CALL                                             !0, 'myMethod1'
          5        DO_FCALL                                          0          
   26     6        INIT_METHOD_CALL                                             !0, 'myMethod2'
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

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

End of function mymethod1

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

End of function mymethod2

End of class interface1.

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

End of function mymethod1

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

End of function mymethod2

End of class interface2.

Class SomeClass:
Function mymethod1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N1T30
function name:  myMethod1
number of ops:  6
compiled vars:  !0 = $param1
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
   15     1        ECHO                                                         'In+method2'
   16     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
   17     5      > RETURN                                                       null

End of function mymethod1

Function mymethod2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N1T30
function name:  myMethod2
number of ops:  8
compiled vars:  !0 = $param1, !1 = $param2, !2 = $param3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
   19     3        ECHO                                                         'In+Method2'
   20     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
   21     7      > RETURN                                                       null

End of function mymethod2

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.05 ms | 1891 KiB | 14 Q