xref: /PHP-8.1/ext/opcache/tests/jit/not_001.phpt (revision 49286d92)
1--TEST--
2JIT NOT: 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;opcache.jit_debug=257
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14function foo($x) {
15	return !$x;
16}
17var_dump(foo(1));
18var_dump(foo(0));
19var_dump(foo(1.0));
20var_dump(foo(0.0));
21?>
22--EXPECT--
23bool(false)
24bool(true)
25bool(false)
26bool(true)
27