xref: /PHP-8.4/ext/opcache/tests/jit/nan_001.phpt (revision c16ad918)
1--TEST--
2NaN handling: 001
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10$b = NAN;
11for ($i = 0; $i < 3; $i++) {
12    if ($b) { echo "nan is true\n"; }
13    else { echo "nan is false\n"; }
14}
15?>
16--EXPECT--
17nan is true
18nan is true
19nan is true
20