xref: /PHP-8.2/ext/opcache/tests/jit/inc_009.phpt (revision e9f783fc)
1--TEST--
2JIT INC: 009
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() {
15    $x = 1.0;
16    $x += 0;
17    ++$x; // mem -> mem
18    var_dump($x);
19}
20foo();
21?>
22--EXPECT--
23float(2)
24