1--TEST--
2Undef to exception for assign dim offset
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10set_error_handler(function($_, $m){
11    throw new Exception($m);
12});
13function test1() {
14    $a = [];
15    $res = $a[$undef] = null;
16}
17function test2() {
18    $a = [];
19    $res = $a[$undef] += 1;
20}
21function test3() {
22    $a = [];
23    $res = isset($a[$undef]);
24}
25try {
26    test1();
27} catch (Exception $e) {
28    echo $e->getMessage(), "\n";
29}
30try {
31    test2();
32} catch (Exception $e) {
33    echo $e->getMessage(), "\n";
34}
35?>
36--EXPECT--
37Undefined variable $undef
38Undefined variable $undef
39