3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Wij #^@ & zij !> !-?! beƫindigen"; echo rtrim(preg_replace('/([^a-z0-9]+)/', '-', strtolower($input)), '-');

preferences:
37.44 ms | 402 KiB | 5 Q