add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / static_statement / 1407.php
blob6b1ed52a6089f2e888143e6ca076d077b8d78008
1 <?php
3 static $a = 1, $b = 2;
4 static $c = 1;
5 static $d = 1;
6 static $e = 1;
7 static $f = 1;
8 static $g = 1;
9 static $h = 1;
10 static $i = 1;
11 static $i = 2;
12 if (false) {
13 static $a = 2;
14 static $b = 3;
15 static $c = 2;
16 static $g;
17 static $i;
18 $e = 2;
20 else {
21 static $d = 2;
22 static $h;
23 $f = 2;
25 echo $a;
26 echo $b;
27 echo $c;
28 echo $d;
29 echo $e;
30 echo $f;
31 echo $g;
32 echo $h;
33 echo $i;
34 function f() {
35 static $a = 1, $b = 2;
36 static $c = 1;
37 static $d = 1;
38 static $e = 1;
39 static $f = 1;
40 static $g = 1;
41 static $h = 1;
42 static $i = 1;
43 static $i = 2;
44 if (false) {
45 static $a = 2;
46 static $b = 3;
47 static $c = 2;
48 static $g;
49 static $i;
50 $e = 2;
52 else {
53 static $d = 2;
54 static $h;
55 $f = 2;
57 echo $a;
58 echo $b;
59 echo $c;
60 echo $d;
61 echo $e;
62 echo $f;
63 echo $g;
64 echo $h;
65 echo $i;
67 f();
68 class foo {
69 static $a = 1, $b = 2;
70 static $c = 1;
71 static $d = 1;
72 static $e = 1;
73 static $f = 1;
74 function bar() {
75 static $a = 1, $b = 2;
76 static $c = 1;
77 static $d = 1;
78 static $e = 1;
79 static $f = 1;
80 static $g = 1;
81 static $h = 1;
82 static $i = 1;
83 static $i = 2;
84 if (false) {
85 static $a = 2;
86 static $b = 3;
87 static $c = 2;
88 static $g;
89 static $i;
90 $e = 2;
92 else {
93 static $d = 2;
94 static $h;
95 $f = 2;
97 echo foo::$a;
98 echo foo::$b;
99 echo foo::$c;
100 echo foo::$d;
101 echo foo::$e;
102 echo foo::$f;
103 echo $a;
104 echo $b;
105 echo $c;
106 echo $d;
107 echo $e;
108 echo $f;
109 echo $g;
110 echo $h;
111 echo $i;
114 echo foo::$a;
115 echo foo::$b;
116 $v = new foo;
117 $v->bar();