1--TEST--
2Type inference 012: FETCH_DIM_UNSET
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9function test() {
10    $closure = function() {return "string";};
11    unset($x['b'][$closure()]['d']);
12    $x = $arr;
13    $arr = ['a' => $closure(), 'b' => [$closure() => []]];
14    $x = $arr;
15    unset($x['b'][$closure()]['d']);
16    $x = $arr;
17}
18
19test();
20?>
21DONE
22--EXPECTF--
23Warning: Undefined variable $x in %sinference_012.php on line 4
24
25Warning: Undefined variable $arr in %sinference_012.php on line 5
26DONE
27