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