3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One { trait foo { static $bar = []; public static function a() { } } } namespace Two { use One\foo as OneFoo; trait bat { use OneFoo; public static function a() { $bar[] = 'qux'; } } } namespace Three { class qux { use \Two\bat; public static function a() { \Too\bar::a(); } } } namespace { \Three\qux::a(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBDEb
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   DECLARE_CLASS                                            'two%5Cbat'
   25     1        DECLARE_CLASS                                            'three%5Cqux'
   35     2        INIT_STATIC_METHOD_CALL                                  'Three%5Cqux', 'a'
          3        DO_FCALL                                      0          
   36     4      > RETURN                                                   1

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

End of function a

End of class One\foo.

Class Two\bat:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBDEb
function name:  a
number of ops:  3
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'qux'
   20     2      > RETURN                                                   null

End of function a

End of class Two\bat.

Class Three\qux:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBDEb
function name:  a
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_STATIC_METHOD_CALL                                  'Too%5Cbar', 'a'
          1        DO_FCALL                                      0          
   30     2      > RETURN                                                   null

End of function a

End of class Three\qux.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1394 KiB | 13 Q