3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { } class Foo implements FooInterface { } interface BarInterface { public function fooAction(FooInterface $foo); } class Bar implements BarInterface { public function fooAction($foo) { } } $bar = new Bar; $foo = new Foo; $bar->fooAction($foo); $bar->fooAction("asdfsd"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tm4W6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $bar, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'foo'
   21     1        DECLARE_CLASS                                            'bar'
   30     2        NEW                                              $2      'Bar'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   31     5        NEW                                              $5      'Foo'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   35     8        INIT_METHOD_CALL                                         !0, 'fooAction'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
   37    11        INIT_METHOD_CALL                                         !0, 'fooAction'
         12        SEND_VAL_EX                                              'asdfsd'
         13        DO_FCALL                                      0          
   40    14      > 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/tm4W6
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/tm4W6
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:
167.7 ms | 1394 KiB | 13 Q