3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= "sadigasidrasdy \r\n asibdasudas"; echo preg_replace('\r\n','\r\n\t',$a);
Output for 5.2.3 - 7.1.0
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/V23PO on line 6
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in <b>/in/V23PO</b> on line <b>6</b><br />
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_replace(): Delimiter must not be alphanumeric or backslash in <b>/in/V23PO</b> on line <b>6</b><br />
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Delimiter must not be alphanumeric or backslash in <b>/in/V23PO</b> on line <b>6</b><br />