3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'https://globoesporte.globo.com/'; echo preg_replace( array('/^http(s)?\:\/\//', '/[\.\-]/','/\//'), array('','_',''), $url);
Output for 4.3.0 - 7.1.0
globoesporte_globo_com