1--TEST--
2JIT FETCH_DIM_RW: 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9set_error_handler(function(y$y) {
10});
11$k=[];
12$y[$k]++;
13?>
14--EXPECTF--
15Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($y) must be of type y, int given, called in %sfetch_dim_rw_004.php:2
16Stack trace:
17#0 %sfetch_dim_rw_004.php(5): {closure}(2, 'Undefined varia...', '%s', 5)
18#1 {main}
19
20Next TypeError: Cannot access offset of type array on array in %sfetch_dim_rw_004.php:5
21Stack trace:
22#0 {main}
23  thrown in %sfetch_dim_rw_004.php on line 5
24