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
7--FILE--
8<?php
9set_error_handler(function($_, $m){
10    throw new Exception($m);
11});
12function test1() {
13    $res = $a[$undef] = null;
14}
15function test2() {
16    $res = $a[$undef] += 1;
17}
18try {
19    test1();
20} catch (Exception $e) {
21    echo $e->getMessage(), "\n";
22}
23try {
24    test2();
25} catch (Exception $e) {
26    echo $e->getMessage(), "\n";
27}
28?>
29--EXPECT--
30Undefined variable $undef
31Undefined variable $a
32