Benchmark One - High

2.9243151600001 - 6000 cycles

Benchmark Two - High

3.01572098 - 6000 cycles

Benchmark One - Low

3.9586746000001 - 6000 cycles

Benchmark Two - Low

4.53636405 - 6000 cycles

Current Benchmark

<?php 

$find 
'syridium';
$string $str;
if (
strpos($string$find) !== false) echo '!';

 
?>
vs.
<?php 

$find 
'syridium';
$string $str;
if (
preg_match('/'.$find.'/'$string)) echo '!';

 
?>

Conclusion

After an average of 6000 cycles, the fastest option is Benchmark 1!

<?php 

$find 
'syridium';
$string $str;
if (
strpos($string$find) !== false) echo '!';

 
?>


Copyright Syridium DV