[ create a new paste ] login | about

Link: http://codepad.org/tXU5LAkQ    [ raw code | output | fork ]

PHP, pasted on Jun 30:
<?php

$foo = 42;
$bar = 64;

$start = microtime(true);

for ($i = 0; $i <= 1000; $i++) {
	"$foo $bar";
}

echo microtime(true) - $start;

echo "\n";


$start = microtime(true);

for ($i = 0; $i <= 1000; $i++) {
	$foo . ' ' . $bar;
}

echo microtime(true) - $start;

echo "\n";


Output:
1
2
0.020537853240967
0.00063490867614746


Create a new paste based on this one


Comments: