xref: /PHP-8.1/ext/opcache/tests/jit/inc_019.phpt (revision e9f783fc)
1--TEST--
2JIT INC: 019
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 bar($b) {
15    if ($b) {
16        $a = 1;
17    } else {
18        $a = 2;
19    }
20    isset($a);
21    var_dump($a++);
22    return $a;
23}
24var_dump(bar(0));
25?>
26--EXPECT--
27int(2)
28int(3)
29