3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "beëindigén van vreemde #@)(#!@$#$@ links !"; echo rtrim( preg_replace('/([^a-z0-9]+)/', '-', strtolower( preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities( $input ) ) ) ) , '-');

preferences:
34.18 ms | 402 KiB | 5 Q