xref: /PHP-8.0/ext/opcache/tests/jit/inc_002.phpt (revision 7aacc705)
1--TEST--
2JIT INC: 002
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--SKIPIF--
11<?php require_once('skipif.inc'); ?>
12--FILE--
13<?php
14function foo() {
15    $x = 1;
16    ++$x; // reg -> mem
17    var_dump($x);
18}
19foo();
20?>
21--EXPECT--
22int(2)
23