xref: /php-src/ext/opcache/tests/jit/cmp_002.phpt (revision c16ad918)
1--TEST--
2JIT CMP: 001
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12$a = 0;
13$b = 0.0;
14var_dump($a < $b ? 1 : 0);
15var_dump($a > $b ? 1 : 0);
16var_dump($a <= $b ? 1 : 0);
17var_dump($a >= $b ? 1 : 0);
18?>
19--EXPECT--
20int(0)
21int(0)
22int(1)
23int(1)
24