3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$string = 'привет меня зовут <b>Файл</b> а кто ты.'; // echo preg_replace('/<b>(.*?)<\/b>/i', '<b>Мой файл</b>', $string); $string = 'April 15, 2003'; $pattern = '2003'; $replacement = '3002'; echo preg_replace($pattern, $replacement, $string);
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/KvHKg on line 8
Output for 4.3.0 - 4.3.10
Warning: Delimiter must not be alphanumeric or backslash in /in/KvHKg on line 8