I have a very long string stored in $str. Now I do $sub = substr($str, $pos) and I will do only reading operations on both strings.
$str
$sub = substr($str, $pos)
Is the long