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.
 
 

22 lines
384 B

--TEST--
std bigint: map set/get
--FILE--
<?php
function main() {
$m = std::map(native_types::type_int, native_types::type_bigint);
$m[1] = 100;
$m[2] = 200;
$m[3] = 300;
var_dump($m[1]->toString());
var_dump($m[2]->toString());
var_dump($m[3]->toString());
var_dump(count($m));
}
?>
--EXPECT--
string(3) "100"
string(3) "200"
string(3) "300"
int(3)