3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Peugeot /<span class="h1firstword"></span>
Output for hhvm-3.10.0

Process exited with code 153.