1--TEST--
2Comparisons with NAN should yield false, even at compile-time
3--FILE--
4<?php
5
6echo "** CONST\n";
7var_dump(0 < NAN);
8var_dump(0 <= NAN);
9var_dump(0 > NAN);
10var_dump(0 >= NAN);
11
12echo "** VAR\n";
13$nan = NAN;
14var_dump(0 < $nan);
15var_dump(0 <= $nan);
16var_dump(0 > $nan);
17var_dump(0 >= $nan);
18--EXPECT--
19** CONST
20bool(false)
21bool(false)
22bool(false)
23bool(false)
24** VAR
25bool(false)
26bool(false)
27bool(false)
28bool(false)
29