1<?php
2
3trait T1 {
4    public function method() {
5        // Needs to be optimized somehow.
6        $str = "Foo";
7        echo "$str\n";
8    }
9}
10
11trait T2 {}
12
13class C1 {
14    use T1;
15}
16
17class C2 extends C1 {
18    use T2;
19}
20
21trait T3 {
22    public function method() {
23        // Prevent trivial inheritance.
24        static $x;
25        // Needs to be optimized somehow.
26        $str = "Foo";
27        echo "$str\n";
28    }
29}
30class C3 {
31    use T3;
32}
33class C4 extends C3 {}
34