3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name='Kółkź'; var_dump(preg_replace('#[a-zA-Z0-9]+#', '-', $name));
Output for 5.5.9
string(8) "-ół-ź"