3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback('/(ä)|(ö)|(ü)|(Ä)|(Ö)|(Ü)|(ß)/', function($matches){ foreach($matches as &$match){ switch($match){ case 'ü': $match = 'ue'; break; case 'ö': $match = 'oe'; break; case 'ä': $match = 'ae'; break; case 'Ü': $match = 'Ue'; break; case 'Ö': $match = 'Oe'; break; case 'Ä': $match = 'Ae'; break; case 'ß': $match = 'ss'; break; } } }, 'äöüÄÖÜß');
based on jsCZq
Output for 5.3.20 - 7.2.0