3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { function B($C); } class D implements A { function B($FOO) { echo $FOO; } } $d = new D; $d->B('bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ZRTq
function name:  (null)
number of ops:  8
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'd'
   14     1        NEW                                              $1      'D'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_METHOD_CALL                                         !0, 'B'
          5        SEND_VAL_EX                                              'bar'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function b

End of class A.

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

End of function b

End of class D.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.52 ms | 1393 KiB | 13 Q