3v4l.org

run code in 200+ 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 5.2.5 - 7.3.0beta1
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Peugeot 107
Output for 4.3.0 - 4.3.10
Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4 Peugeot 107