3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo PCRE_VERSION . PHP_EOL; echo preg_replace('/(*BSR_ANYCRLF)\R/', ",$0", "aa\r\nbb\r\ncc\r\n");
Output for 5.5.32 - 5.5.35, 5.6.18 - 5.6.28, 7.0.3 - 7.1.0
8.38 2015-11-23 aa, bb, cc,
Output for 5.4.43 - 5.4.45, 5.5.27 - 5.5.31, 5.6.11 - 5.6.17, 7.0.0 - 7.0.2
8.37 2015-04-28 aa, bb, cc,
Output for 5.4.41 - 5.4.42, 5.5.25 - 5.5.26, 5.6.9 - 5.6.10
8.36 2014-09-26 aa, bb, cc,
Output for 5.5.10 - 5.5.24, 5.6.0 - 5.6.8
8.34 2013-12-15 aa, bb, cc,
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.40, 5.5.0 - 5.5.9
8.32 2012-11-30 aa, bb, cc,
Output for 5.3.19 - 5.3.23, 5.4.9 - 5.4.13
8.31 2012-07-06 aa, bb, cc,
Output for 5.3.7 - 5.3.18, 5.4.0 - 5.4.8
8.12 2011-01-15 aa, bb, cc,
Output for 5.3.6
8.11 2010-12-10 aa, bb, cc,
Output for 5.3.4 - 5.3.5
8.10 2010-06-25 aa, bb, cc,
Output for 5.2.14 - 5.2.17, 5.3.3
8.02 2010-03-19 aa, bb, cc,
Output for 5.3.2
8.00 2009-10-19 aa, bb, cc,
Output for 5.2.10 - 5.2.13, 5.3.0 - 5.3.1
7.9 2009-04-11 aa, bb, cc,
Output for 5.2.7 - 5.2.9
7.8 2008-09-05 aa, bb, cc,
Output for 5.2.6
7.6 2008-01-28 aa, bb, cc,
Output for 5.2.5
7.3 2007-08-28 Warning: preg_replace(): Compilation failed: (*VERB) not recognized at offset 5 in /in/kCs7P on line 3
Output for 5.2.4
7.2 2007-06-19 Warning: preg_replace(): Compilation failed: nothing to repeat at offset 1 in /in/kCs7P on line 3
Output for 5.2.3
PCRE_VERSION Warning: preg_replace(): Compilation failed: nothing to repeat at offset 1 in /in/kCs7P on line 3
Output for 4.4.3 - 4.4.8, 5.0.2 - 5.2.2
PCRE_VERSION <br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: nothing to repeat at offset 1 in <b>/in/kCs7P</b> on line <b>3</b><br />
Output for 5.0.0 - 5.0.1
PCRE_VERSIONPHP_EOL<br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: nothing to repeat at offset 1 in <b>/in/kCs7P</b> on line <b>3</b><br />
Output for 4.4.9
PCRE_VERSION aa, bb, cc,
Output for 4.3.11 - 4.4.2
PCRE_VERSION <br /> <b>Warning</b>: preg_replace(): Compilation failed: nothing to repeat at offset 1 in <b>/in/kCs7P</b> on line <b>3</b><br />
Output for 4.3.10
PCRE_VERSION <br /> <b>Warning</b>: Compilation failed: nothing to repeat at offset 1 in <b>/in/kCs7P</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.9
PCRE_VERSIONPHP_EOL<br /> <b>Warning</b>: Compilation failed: nothing to repeat at offset 1 in <b>/in/kCs7P</b> on line <b>3</b><br />