3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'Models\Site'; echo preg_replace('#^(.*)\\\\\([^\\\\]+)$#', '$1', $string);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 15 in /in/fqPQa on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: 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 />