1--TEST--
2JIT ASSIGN_DIM: 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10class Test implements ArrayAccess {
11    function offsetExists($x): bool {}
12    function offsetGet($x): mixed {}
13    function offsetSet($x, $y): void {
14        echo "offsetSet($x, $y)\n";
15    }
16    function offsetUnset($x): void {}
17}
18function test() {
19    $obj = new Test;
20    $obj[$undef] = 1;
21}
22test();
23?>
24--EXPECTF--
25Warning: Undefined variable $undef in %s on line %d
26offsetSet(, 1)
27