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