3v4l.org

run code in 300+ PHP versions simultaneously
:<?php interface FooInterface { } class Foo implements FooInterface { } interface BarInterface { public function fooAction($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/W31mP
function name:  (null)
number of ops:  13
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'
   21     2        DECLARE_CLASS                                            'bar'
   30     3        NEW                                              $2      'Bar'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   31     6        NEW                                              $5      'Foo'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
   35     9        INIT_METHOD_CALL                                         !0, 'fooAction'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
   39    12      > RETURN                                                   1

Class FooInterface: [no user functions]
Class Foo: [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/W31mP
function name:  fooAction
number of ops:  2
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     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/W31mP
function name:  fooAction
number of ops:  2
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   26     1      > RETURN                                                   null

End of function fooaction

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.16 ms | 1394 KiB | 13 Q