1--TEST--
2JIT ASSIGN_DIM: 013
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10function test() {
11    for(;;) {
12        $arr[] = $obj = new stdClass;
13        $obj->y = set_error_handler(function(){});
14        foreach($obj as $y) {
15        }
16        $arr = ['' => y];
17    }
18}
19test();
20?>
21--EXPECTF--
22Fatal error: Uncaught Error: Undefined constant "y" in %sassign_dim_013.php:8
23Stack trace:
24#0 %sassign_dim_013.php(11): test()
25#1 {main}
26  thrown in %sassign_dim_013.php on line 8