- microtime: documentation ( source)
<?php
$time=microtime(true);
for($run=0;$run<100000; $run++)
$string1='Hello this is a string which is being read many times and stuff like that.';
$time=microtime(true)-$time;
echo "Single quotes took $time seconds\n";
$time=microtime(true);
for($run=0;$run<100000; $run++)
$string2="Hello this is a string which is being read many times and stuff like that.";
$time=microtime(true)-$time;
echo "Double quotes took $time seconds\n";