3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Models\Site'; echo preg_replace('#^(.*)\\\\\([^\\\\]+)$#', '$1', $string);
Output for 5.2.3 - 7.2.0
Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 15 in /in/fqPQa on line 4
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: unmatched parentheses at offset 15 in <b>/in/fqPQa</b> on line <b>4</b><br />
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_replace(): Compilation failed: unmatched parentheses at offset 15 in <b>/in/fqPQa</b> on line <b>4</b><br />
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Compilation failed: unmatched parentheses at offset 15 in <b>/in/fqPQa</b> on line <b>4</b><br />