3v4l.org

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

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

End of function foo

End of class Foo.

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.54 ms | 1392 KiB | 13 Q