3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace a { class a { public static function test() { echo get_called_class(); } } } namespace b { class b extends \a\a { } } namespace { \b\b::test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZseEW
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                                  'b%5Cb', '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/ZseEW
function name:  test
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'a%5Cget_called_class'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
    6     3      > 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/ZseEW
function name:  test
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'a%5Cget_called_class'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
    6     3      > RETURN                                                   null

End of function test

End of class b\b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.13 ms | 1395 KiB | 15 Q