3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "fĂștbol"; $string = htmlentities(strtolower(utf8_decode($string))); $string = preg_replace("/&(.)(acute|cedil|circ|ring|tilde|uml);/", "$1", $string); $string = preg_replace("/([^a-z0-9]+)/", "-", html_entity_decode($string)); $string = trim($string, "-"); echo $string;
Output for 5.4.0 - 7.1.0
Output for 4.3.0 - 5.3.29
futbol