3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Models\Site'; echo preg_replace('#^(.*)\\\\\([^\\\\]+)$#', '$1', $string);
Output for 7.3.0
Warning: preg_replace(): Compilation failed: unmatched closing parenthesis at offset 15 in /in/fqPQa on line 4
Output for 4.3.11 - 7.2.13
Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 15 in /in/fqPQa on line 4
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: unmatched parentheses at offset 15 in /in/fqPQa on line 4