3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ValueObj { } interface A { public function method(ValueObj $a); } class B implements A { public function method($a) { echo 'hello'; } } $b = new B; $v = new ValueObj; $b->method($v);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yi3Gk
function name:  (null)
number of ops:  11
compiled vars:  !0 = $b, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'b'
   15     1        NEW                                              $2      'B'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   16     4        NEW                                              $5      'ValueObj'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
   17     7        INIT_METHOD_CALL                                         !0, 'method'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class ValueObj: [no user functions]
Class A:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yi3Gk
function name:  method
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function method

End of class A.

Class B:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yi3Gk
function name:  method
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ECHO                                                     'hello'
   12     2      > RETURN                                                   null

End of function method

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.16 ms | 1394 KiB | 13 Q