3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace a { class a { public static function test() { echo __NAMESPACE__; } } } namespace b { class b extends \a\a { } } namespace { \a\a::test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R5Ohb
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'a%5Ca', 'test'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   1

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

End of function test

End of class a\a.

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

End of function test

End of class b\b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.56 ms | 1393 KiB | 13 Q