3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class A { function aaa() { echo "aaa"; } } class B { function bbb() { echo "bbb"; } } } namespace Bar { use Foo\A; class C { function ccc() { echo "ccc"; } } use Foo\B; class D extends B { function ddd() { echo "ddd"; } } } namespace { $b = new \Bar\D(); $b->ddd(); $b->bbb(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   NEW                                              $1      'Bar%5CD'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   38     3        INIT_METHOD_CALL                                         !0, 'ddd'
          4        DO_FCALL                                      0          
   39     5        INIT_METHOD_CALL                                         !0, 'bbb'
          6        DO_FCALL                                      0          
   40     7      > RETURN                                                   1

Class Foo\A:
Function aaa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  aaa
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'aaa'
    7     1      > RETURN                                                   null

End of function aaa

End of class Foo\A.

Class Foo\B:
Function bbb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  bbb
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'bbb'
   13     1      > RETURN                                                   null

End of function bbb

End of class Foo\B.

Class Bar\C:
Function ccc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  ccc
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ECHO                                                     'ccc'
   24     1      > RETURN                                                   null

End of function ccc

End of class Bar\C.

Class Bar\D:
Function ddd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  ddd
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   ECHO                                                     'ddd'
   32     1      > RETURN                                                   null

End of function ddd

Function bbb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiEWd
function name:  bbb
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'bbb'
   13     1      > RETURN                                                   null

End of function bbb

End of class Bar\D.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.36 ms | 996 KiB | 13 Q