1--TEST--
2Incorrect negative range inference
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function test() {
9    for ($i = 0; $i < 10; $i++) {
10        if ($i != 5) {
11            $t = (int) ($i < 5);
12            var_dump($t);
13        }
14    }
15}
16test();
17
18?>
19--EXPECT--
20int(1)
21int(1)
22int(1)
23int(1)
24int(1)
25int(0)
26int(0)
27int(0)
28int(0)
29