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
397 B

--TEST--
std bigfloat: vector push_back and read
--FILE--
<?php
function main() {
$v = std::vector(native_types::type_bigfloat);
$v[] = 3.14;
$v[] = 2.71;
$v[] = 100;
var_dump($v[0]->toString());
var_dump($v[1]->toString());
var_dump($v[2]->toString());
var_dump(count($v));
}
?>
--EXPECT--
string(18) "3.1400000000000001"
string(4) "2.71"
string(3) "100"
int(3)