1--TEST--
2FE_RESET with potentially undef operand
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($c) {
11    if ($c) {
12        $a[] = null;
13    }
14    foreach ($a as $k) {}
15}
16test(false);
17?>
18--EXPECTF--
19Warning: Undefined variable $a in %s on line %d
20
21Warning: foreach() argument must be of type array|object, null given in %s on line %d
22