3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $login = '79165941770'; $login = str_replace(['+', ' ', '(', ')'], '', $login); echo $login[0].substr($login, 1);
based on agNPp
Output for 5.5.0 - 7.2.6
79165941770