File size: 220 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
GH-8074 (Wrong type inference of range() result)
--FILE--
<?php
function test() {
    $array = range(1, "2");

    foreach ($array as $i) {
        var_dump($i + 1);
    }
}

test();
?>
--EXPECT--
int(2)
int(3)