xref: /PHP-8.1/ext/opcache/tests/jit/inc_020.phpt (revision e9f783fc)
1--TEST--
2JIT INC: 020
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($row) {
15    foreach ($row as $key => $value) {
16        if (is_int($key)) {
17            $key++;
18        }
19        if (isset($row[$key])) {
20            return false;
21        }
22    }
23    return true;
24}
25?>
26OK
27--EXPECT--
28OK