3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "234pLdfv"; $text = preg_replace('~[^pLd]+~u', '-', $text); $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); echo $text;

preferences:
48.53 ms | 402 KiB | 5 Q