TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
650 B
23 lines
650 B
<?php
|
|
/**
|
|
* This file is part of TypePHP(AOT).
|
|
*
|
|
* @link https://www.swoole.com/aot/
|
|
* @contact service@swoole.com
|
|
*/
|
|
|
|
namespace KeyExistsOptimization;
|
|
|
|
function check(array $array, int $integer, string $string, mixed $mixed, bool $boolean, float $float): void
|
|
{
|
|
array_key_exists($integer, $array);
|
|
array_key_exists($string, $array);
|
|
array_key_exists($mixed, $array);
|
|
array_key_exists($boolean, $array);
|
|
array_key_exists($float, $array);
|
|
array_key_exists(null, $array);
|
|
array_key_exists([], $array);
|
|
array_key_exists(new \stdClass(), $array);
|
|
key_exists($mixed, $array);
|
|
$array->keyExists($mixed);
|
|
}
|
|
|