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