xref: /PHP-8.2/ext/opcache/tests/jit/jmpz_001.phpt (revision e9f783fc)
1--TEST--
2JIT JMPZ: JMPZ may require code for "smart branch" and at the same time be a target of another JMP.
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13namespace A;
14
15function test() {
16
17    $modelData = array();
18    $ret = false ||
19        ((is_array($modelData) || $modelData instanceof \Countable) && true) || false;
20    return $ret;
21}
22
23var_dump(test());
24?>
25--EXPECT--
26bool(true)
27