1--TEST--
2Catch first exception in the multicatch
3--FILE--
4<?php
5
6require_once __DIR__ . '/exceptions.inc';
7
8try {
9    echo 'TRY' . PHP_EOL;
10    throw new Exception1;
11} catch(Exception1 | Exception2 | Exception3 $e) {
12    echo get_class($e) . PHP_EOL;
13} finally {
14    echo 'FINALLY' . PHP_EOL;
15}
16
17?>
18--EXPECT--
19TRY
20Exception1
21FINALLY
22