<?php
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
$times=0;
$array2 = [6, 7, 8, 9, 10, 11, 12];
function myCount($arr,$times) {
global $times;
$times ++;
return count($arr);
}
$len=myCount($array2,$times);
for ($i=0; $i<$len; $i++ )
{
;
}
echo ($times."\n");
$times=0;
for ($i=0; $i<myCount($array2,$times); $i++ )
{
;
}
print_r($times);