3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Peugeot 107'; $patterns = array('/107/', '/108/', '/207/', '/208/', '/2008/', '/308/', '/3008/', '/508/', '/5008 SW/' ); echo preg_replace($patterns, '/<span class="h1firstword">$1</span>', $title); ?>

preferences:
38.52 ms | 402 KiB | 5 Q