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.
 
 

20 lines
298 B

--TEST--
BigInt: toInt / toFloat
--FILE--
<?php
declare(strict_types=1);
use native_types;
function main(): void {
$a = std::bigInt(42);
var_dump($a->toInt());
var_dump($a->toFloat());
$b = std::bigInt(-100);
var_dump($b->toInt());
}
?>
--EXPECT--
int(42)
float(42)
int(-100)