*/ /** * uses the PEAR::Benchmark_Timer class */ require_once 'Benchmark/Timer.php'; $name = 'RadioGroup_Option'; $type = 'Element'; $timer = &new Benchmark_Timer(); $timer->start(); // strpos for( $i = 1; $i <= 5000; $i++ ) { $file = "$name/$type"; } $timer->setMarker( 'quoted' ); // strstr for( $i = 1; $i <= 5000; $i++ ) { $file = $name.'/'.$type; } $timer->setMarker( 'concat' ); $timer->stop(); $timer->display(); ?>