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.
 
 

23 lines
549 B

<?php
namespace App {
use python\math as mathAlias;
function pythonFullyQualifiedModule(): mixed
{
$root = \python\math\sqrt(16);
$caseInsensitiveRoot = \Python\math\pi;
$attributeResult = \Python\math\pi->__str__();
$nested = \python\os\path\join('/tmp', 'typephp');
$aliased = mathAlias\sqrt(25);
$length = \python\len([1, 2, 3]);
return [$root, $caseInsensitiveRoot, $attributeResult, $nested, $aliased, $length];
}
}
namespace {
function main(): void
{
}
}