php-8.0.30-src/ext/opcache/tests/opt/block_pass_002.phpt

20 lines
371 B
PHP

--TEST--
Block Pass 002: QM_ASSIGN and INIT_ARRAY
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function foo($key, $value, array $attributes) {
return is_array($value)
? [$key, array_merge($value, $attributes)]
: [$value, $attributes];
}
?>
OK
--EXPECT--
OK