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