3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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(); }
based on g2koR
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/kC37U
function name:  (null)
number of ops:  10
compiled vars:  !0 = $hell
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  14     1        DECLARE_CLASS                                    $2      '%00hell%5Chelloworld%2Fin%2FkC37U0x7fda61f6d13e', 'hell%5Chelloworld'
         2        ADD_INTERFACE                                            $2, 'Something%5CHello'
         3        VERIFY_ABSTRACT_CLASS                                    $2
  20     4        NEW                                              $3      :-2
         5        DO_FCALL                                      0          
         6        ASSIGN                                                   !0, $3
  21     7        INIT_METHOD_CALL                                         !0, 'hello'
         8        DO_FCALL                                      0          
         9      > RETURN                                                   1

Class Something\Hello:
Function hello:
Finding entry points
Branch analysis from position: 0
Jump found. 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
Jump found. 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 7.2.0