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.
 
 

24 lines
353 B

--TEST--
default array property
--FILE--
<?php
function main() {
$o = new stdClass();
$year = 1995;
$first = 'php';
$last = '.net';
$o->{0} = $year;
$o->{1} = $first;
$o->{2} = $last;
var_dump($o);
}
?>
--EXPECTF--
object(stdClass)#%d (3) {
["0"]=>
int(1995)
["1"]=>
string(3) "php"
["2"]=>
string(4) ".net"
}