xref: /php-src/ext/opcache/tests/jmp_elim_004.phpt (revision e9f783fc)
1--TEST--
2Incorrect empty basic block elimination
3--INI--
4opcache.enable_cli=1
5opcache.optimization_level=-1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10
11function test() {
12    $foo = "test";
13    var_dump($foo ?? "default");
14
15    $null = null;
16    var_dump($null ?? 3);
17    var_dump($null ?? new stdClass);
18}
19test();
20
21?>
22--EXPECT--
23string(4) "test"
24int(3)
25object(stdClass)#1 (0) {
26}
27