3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { #protected $a; protected $b="bla"; } class B { use A; public function setUp() { $this->b = "bla"; } } class C extends B { use A; protected $b="bla"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRLok
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'b'
   18     1        DECLARE_CLASS                                            'c', 'b'
   22     2      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRLok
function name:  setUp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN_OBJ                                               'b'
          1        OP_DATA                                                  'bla'
   15     2      > RETURN                                                   null

End of function setup

End of class B.

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.67 ms | 1000 KiB | 13 Q