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