503f75d08b
These names don't make sense now that we run both suites the same way.
31 linhas
440 B
PHP
31 linhas
440 B
PHP
<?php
|
|
|
|
function main() {
|
|
print "Test begin\n";
|
|
|
|
$x = "Hello";
|
|
$y = "world";
|
|
$s = '$x $y!';
|
|
for ($i = 0; $i < 2; ++$i) {
|
|
eval("\$r = \"$s\";
|
|
\$x = \"Goodbye\";");
|
|
print "$i: $r\n";
|
|
}
|
|
|
|
function testEval(&$i) {
|
|
eval('$i *= 33;');
|
|
}
|
|
$i = 1;
|
|
while ($i < 100000) {
|
|
testEval($i);
|
|
var_dump($i);
|
|
}
|
|
|
|
for ($i = 0; $i < 5; ++$i) {
|
|
eval('print "Hello!\n";');
|
|
}
|
|
|
|
print "Test end\n";
|
|
}
|
|
main();
|