3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $keyword = 'Гостиница'; $keyword = preg_replace('/[^a-zа-яёЁ0-9]/is', '', $keyword); $keyword = preg_replace('/\s+/', ' ', $keyword); $keyword = trim($keyword); print_r($keyword);
Output for 4.3.0 - 7.1.0
�ос�ини�а