3v4l.org

run code in 300+ PHP versions simultaneously
:<?php interface FooInterface { } class Foo implements FooInterface { } class Foo2 extends Foo { } interface BarInterface { public function fooAction(Foo2 $foo); } class Bar implements BarInterface { public function fooAction(FooInterface $foo) { } } $bar = new Bar; $foo = new Foo; $bar->fooAction($foo); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mtlca
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bar, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3A'
    7     1        DECLARE_CLASS                                            'foo'
   12     2        DECLARE_CLASS                                            'foo2', 'foo'
   25     3        DECLARE_CLASS                                            'bar'
   34     4        NEW                                              $2      'Bar'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   35     7        NEW                                              $5      'Foo'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   39    10        INIT_METHOD_CALL                                         !0, 'fooAction'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
   43    13      > RETURN                                                   1

Class FooInterface: [no user functions]
Class Foo: [no user functions]
Class Foo2: [no user functions]
Class BarInterface:
Function fooaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mtlca
function name:  fooAction
number of ops:  2
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function fooaction

End of class BarInterface.

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

End of function fooaction

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.94 ms | 1394 KiB | 13 Q