3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ServiceContainer {} interface Foo { public function load(ServiceContainer $container, array $params = array()); } class Bar implements Foo { public function load(ServiceContainer $container) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DXRQD
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'bar'
   13     1      > RETURN                                                   1

Class ServiceContainer: [no user functions]
Class Foo:
Function load:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DXRQD
function name:  load
number of ops:  3
compiled vars:  !0 = $container, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
          2      > RETURN                                                   null

End of function load

End of class Foo.

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

End of function load

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.6 ms | 1393 KiB | 13 Q