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 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4
Output for hhvm-3.12.0
Warning: Delimiter must not be alphanumeric or backslash in /in/aWP29 on line 4
Output for hhvm-3.10.0

Process exited with code 153.
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