xref: /php-src/ext/opcache/tests/jit/jmpz_001.phpt (revision c16ad918)
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.protect_memory=1
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12namespace A;
13
14function test() {
15
16    $modelData = array();
17    $ret = false ||
18        ((is_array($modelData) || $modelData instanceof \Countable) && true) || false;
19    return $ret;
20}
21
22var_dump(test());
23?>
24--EXPECT--
25bool(true)
26