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.
18 lines
448 B
18 lines
448 B
<?php
|
|
|
|
function splRuntimeDirectCalls(Iterator $iterator, object $object, string $constantName): array
|
|
{
|
|
return [
|
|
iterator_count($iterator),
|
|
iterator_to_array($iterator),
|
|
iterator_to_array($iterator, false),
|
|
spl_object_hash($object),
|
|
spl_object_id($object),
|
|
constant($constantName),
|
|
];
|
|
}
|
|
|
|
function splRuntimeDynamicConstant(mixed $constantName): mixed
|
|
{
|
|
return constant($constantName);
|
|
}
|
|
|