1--TEST--
2JIT ASSIGN_DIM_OP: Undefined variable and index with exception
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    $res = $a[$undef] = null;
15}
16function test2() {
17    $res = $a[$undef] += 1;
18}
19try {
20    test1();
21} catch (Exception $e) {
22    echo $e->getMessage(), "\n";
23}
24try {
25    test2();
26} catch (Exception $e) {
27    echo $e->getMessage(), "\n";
28}
29?>
30--EXPECT--
31Undefined variable $undef
32Undefined variable $a
33