3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Models\Site'; echo preg_replace('#^(.*)\\\\\([^\\\\]+)$#', '$1', $string);

preferences:
42.7 ms | 402 KiB | 5 Q