4 public function __construct(private int $i) {}
5 public function __destruct() { echo "dtor: $this->i\n"; }
9 public function __invoke($x) { throw new exception(); }
10 public function __destruct() { echo "~invoker\n"; }
15 array_map(new invoker(), array(new dtor(1), new dtor(2)));
16 } catch (exception
$x) {