<?php
include_once('class.stoper.php');
$s = new Stoper();
$s->AdvStart();
for ($i = 0; $i < 100000; $i++) {
$letter = chr(rand(97, 122));
$digit = ord($letter);
}
$s->AdvCheckPoint('first loop');
$some = 12345.423;
$important = 9999;
$variables = 'qwertyQWERTY';
$s->AdvCheckPoint('variables initialization');
for ($i = 0; $i < 100000; $i++) {
$someText = 'Lorem ipsum ('.$some.') dolor sit amet ('.$important.'), consectetuer adipiscing elit. ['.$variables.']';
}
$s->AdvCheckPoint('second loop (single quotes)');
for ($i = 0; $i < 100000; $i++) {
$someText = "Lorem ipsum (".$some.") dolor sit amet (".$important."), consectetuer adipiscing elit. [".$variables."]";
}
$s->AdvCheckPoint('third loop (doubles quotes with concatenation)');
for ($i = 0; $i < 100000; $i++) {
$someText = "Lorem ipsum ($some) dolor sit amet ($important), consectetuer adipiscing elit. [$variables]";
}
$s->AdvCheckPoint('fourth loop (doubles quotes)');
$s->AdvStop();
echo $s->showAdvResults();
$s->saveAdvResults();
?>
|