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.
16 lines
345 B
16 lines
345 B
<?php
|
|
/**
|
|
* This file is part of TypePHP(AOT).
|
|
*
|
|
* @link https://www.swoole.com/aot/
|
|
* @contact service@swoole.com
|
|
*/
|
|
|
|
function main(): void
|
|
{
|
|
echo count([1, 2, 3]), "\n";
|
|
echo count([[1, 2], [3]]), "\n";
|
|
echo count([1.5, 'text', true, false, null]), "\n";
|
|
echo count([-2, +3, -1.5]), "\n";
|
|
echo count([]), "\n";
|
|
}
|
|
|