aboutsummaryrefslogtreecommitdiffhomepage
path: root/catchline.php
blob: 058abebe082c5eb7f30826fc6f6cffe92c7c56e8 (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
<?php
try {
  f(3);
} catch (Throwable $e) {
  while ($e = $e->getPrevious()) printf('%c', $e->getLine() + 23);
  echo "\n";
}
function f(int $i) {
  if ($i < 0) f();
  try {
    match ($i) {
      0 => X, // 12行目




































      2 => X, // 49行目







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