00001 <?php 00002 $cars[0] = 57; 00003 $cars[1] = 145; 00004 $cars[2] = 5; 00005 $s = microtime(true); 00006 for($i=0; $i<10000; $i++) 00007 { 00008 $test = strrev(str_pad(decbin($cars[2]), 8, '0', STR_PAD_LEFT). 00009 str_pad(decbin($cars[1]), 8, '0', STR_PAD_LEFT). 00010 str_pad(decbin($cars[0]), 8, '0', STR_PAD_LEFT)); 00011 } 00012 $e = microtime(true); 00013 echo "<p>$test<p>".($e-$s)."</p>"; 00014 00015 00016 ?>