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

--TEST--
std decimal: vector push_back and read
--FILE--
<?php
function main() {
$v = std::vector(Type::Decimal);
$v[] = 3.14;
$v[] = 2.5;
$v[] = 100;
var_dump($v[0]->toString());
var_dump($v[1]->toString());
var_dump($v[2]->toString());
var_dump(count($v));
}
?>
--EXPECT--
string(4) "3.14"
string(3) "2.5"
string(3) "100"
int(3)