1--TEST--
2array unpacking with undefined variable
3--FILE--
4<?php
5
6var_dump([...$arr]);
7
8?>
9--EXPECTF--
10Warning: Undefined variable $arr in %s on line %d
11
12Fatal error: Uncaught Error: Only arrays and Traversables can be unpacked in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16