3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; const FOO = 2; function foo() {} class foo { static function staticmethod() {} } // Nome não qualificado foo(); // resolve a função Foo\Bar\foo foo::staticmethod(); // resolve a classe Foo\Bar\foo, método staticmethod echo FOO; // resolve a constante Foo\Bar\FOO echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vXZZR
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Foo%5CBar%5CFOO', 2
   13     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5CBar%5Cfoo'
          2        DO_FCALL                                      0          
   14     3        INIT_STATIC_METHOD_CALL                                  'Foo%5CBar%5Cfoo', 'staticmethod'
          4        DO_FCALL                                      0          
   15     5        FETCH_CONSTANT                                   ~2      'Foo%5CBar%5CFOO'
          6        ECHO                                                     ~2
   16     7        ECHO                                                     '%0A'
          8      > RETURN                                                   1

Function foo%5Cbar%5Cfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vXZZR
function name:  Foo\Bar\foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function foo%5Cbar%5Cfoo

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

End of function staticmethod

End of class Foo\Bar\foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.16 ms | 1397 KiB | 14 Q