- microtime: documentation ( source)
<?php
$a = "Something";
$b = "Other thing";
$startDouble = microtime();
for ($i = 0; $i < 10000; $i++)
$var = "I am a single quote string $a & $b & $a & $b";
$endDouble = microtime();
$timeDouble = $endDouble - $startDouble;
echo 'No math took : ',$timeDouble,'ms';