I know that using single quotes around a string in PHP is faster than using the double quotes because PHP doesn\'t need to check for variable presence in the single quoted s
I tested with timing (microtime) on my Vista/php5 box with two loops, one for ' and one for ".
On 100 iterations: - single quotes: 0.000139 - double quotes: 0.000228
On 1000 iterations: - single quotes: 0.002377 - double quotes: 0.002056
On 2000 iterations: - single quotes: 0.003562 - double quotes: 0.010041
EDIT: also timing echo 'Foo', $bar; 100 iterations = 0.000107, 1000 iterations = 0.001381, 2000 iterations = 0.022434.
echo 'Foo', $bar; is the fastest on 100 and 1000 iterations, but for some reason it's slowest on 2000 iterations... ?