xref: /PHP-8.4/ext/opcache/tests/fe_fetch_dce.phpt (revision e9f783fc)
1--TEST--
2Incorrect DCE with FE_FETCH
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11
12function test() {
13    $a = ["3"];
14    $x = 1;
15    foreach ($a as $x) {
16        $x = 2.0;
17    }
18    var_dump($x);
19}
20test();
21
22?>
23--EXPECT--
24float(2)
25