aboutsummaryrefslogtreecommitdiffhomepage
path: root/catchline.php
blob: 97f3c9308c052dd5e08e6ee360d6b9ce340a662f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
try {
  f(3);
} catch (Throwable $e) {
  do {
    printf('%c', $e->getLine() + 21);
  } while ($e = $e->getPrevious());
  echo "\n";
}
function f(int $i) {
  if ($i < 0) return;
  try {
    match ($i) {
      0 => X, // 14行目




































      2 => X, // 51行目







      1, 3 => X, // 59行目
    };
  } finally {
    f($i - 1);
  }
}