3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Foo { public function __construct() { function do_foo() { echo __FUNCTION__, "\n"; } function do_bar() { echo __FUNCTION__, "\n"; } } } function foobar() { echo __FUNCTION__, "\n"; } } namespace bar { use foo; foo\foobar(); new foo\Foo(); foo\do_foo(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgR4J
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'foo%5Cfoobar'
          1        DO_FCALL                                      0          
   30     2        NEW                                              $1      'foo%5CFoo'
          3        DO_FCALL                                      0          
          4        FREE                                                     $1
   32     5        INIT_FCALL_BY_NAME                                       'foo%5Cdo_foo'
          6        DO_FCALL                                      0          
   34     7      > RETURN                                                   1

Function %00foo%5Cdo_foo%2Fin%2FXgR4J%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgR4J
function name:  foo\do_foo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'foo%5Cdo_foo'
          1        ECHO                                                     '%0A'
    9     2      > RETURN                                                   null

End of function %00foo%5Cdo_foo%2Fin%2FXgR4J%3A7%240

Function %00foo%5Cdo_bar%2Fin%2FXgR4J%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgR4J
function name:  foo\do_bar
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'foo%5Cdo_bar'
          1        ECHO                                                     '%0A'
   13     2      > RETURN                                                   null

End of function %00foo%5Cdo_bar%2Fin%2FXgR4J%3A11%241

Function foo%5Cfoobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgR4J
function name:  foo\foobar
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ECHO                                                     'foo%5Cfoobar'
          1        ECHO                                                     '%0A'
   20     2      > RETURN                                                   null

End of function foo%5Cfoobar

Class foo\Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgR4J
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_FUNCTION                                         'foo%5Cdo_foo'
   11     1        DECLARE_FUNCTION                                         'foo%5Cdo_bar'
   14     2      > RETURN                                                   null

End of function __construct

End of class foo\Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1399 KiB | 14 Q