1--TEST--
2Don't create FETCH_DIM_R with UNUSED op2
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8// Order matters
9test($arr[]);
10function test($arg) {}
11
12?>
13--EXPECTF--
14Fatal error: Uncaught Error: Cannot use [] for reading in %s:%d
15Stack trace:
16#0 {main}
17  thrown in %s on line %d
18