3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { public static function qux() { var_dump(self::class, static::class); } } class Foo { use Bar; } Foo::qux(); Bar::qux();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sABla
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'foo'
   16     1        INIT_STATIC_METHOD_CALL                                  'Foo', 'qux'
          2        DO_FCALL                                      0          
   17     3        INIT_STATIC_METHOD_CALL                                  'Bar', 'qux'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Bar:
Function qux:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sABla
function name:  qux
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_CLASS_NAME                                 ~0      
          2        SEND_VAL                                                 ~0
          3        FETCH_CLASS_NAME                                 ~1      
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function qux

End of class Bar.

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.61 ms | 1394 KiB | 15 Q