3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "mein\\teststring"; $new_str = substr($str, ($pos = strpos($str, '\\')) !== false ? $pos + 1 : 0); echo $new_str; ?>

preferences:
42.45 ms | 402 KiB | 5 Q