3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Something { interface Hello { public function hello(\SomethingDifferent\World $world); } } namespace Hell { use Something\Hello; use SomethingDifferent\World; class HelloWorld implements Hello { public function hello(World $world) { } } $hell = new HelloWorld(); $hell->hello(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kC37U
function name:  (null)
number of ops:  7
compiled vars:  !0 = $hell
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   DECLARE_CLASS                                            'hell%5Chelloworld'
   20     1        NEW                                              $1      'Hell%5CHelloWorld'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        INIT_METHOD_CALL                                         !0, 'hello'
          5        DO_FCALL                                      0          
   22     6      > RETURN                                                   1

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

End of function hello

End of class Something\Hello.

Class Hell\HelloWorld:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kC37U
function name:  hello
number of ops:  2
compiled vars:  !0 = $world
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1      > RETURN                                                   null

End of function hello

End of class Hell\HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.81 ms | 1394 KiB | 13 Q