3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function transliterate($textcyr) { $textcyr = preg_replace('/[^A-Za-z0-9\s\-]/', '', $textcyr); if($textcyr) return $textcyr; else return null; } echo transliterate("Restart Cool");
based on 7ogvq
Output for 4.3.0 - 7.2.0
Restart Cool