xref: /PHP-8.3/ext/opcache/tests/opt/gh8074.phpt (revision ef80dcb8)
1--TEST--
2GH-8074 (Wrong type inference of range() result)
3--FILE--
4<?php
5function test() {
6    $array = range(1, "2");
7
8    foreach ($array as $i) {
9        var_dump($i + 1);
10    }
11}
12
13test();
14?>
15--EXPECT--
16int(2)
17int(3)
18