3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { use B; } class C extends A { } trait B { public function dupa() { echo static::class; } } (new A())->dupa();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h1ebn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a'
    8     1        DECLARE_CLASS                                            'c', 'a'
   19     2        NEW                                              $0      'A'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'dupa'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class A: [no user functions]
Class C: [no user functions]
Class B:
Function dupa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h1ebn
function name:  dupa
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_CLASS_NAME                                 ~0      
          1        ECHO                                                     ~0
   16     2      > RETURN                                                   null

End of function dupa

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.42 ms | 1393 KiB | 13 Q