3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Аl(ОН)3х12Н2О'; $trans = array( 'А' => 'A', 'В' => 'B', 'С' => 'C', 'Е' => 'E', 'Н' => 'H', 'К' => 'K', 'М' => 'M', 'О' => 'O', 'Р' => 'P', 'Т' => 'T', 'У' => 'Y', 'а' => 'a', 'с' => 'c', 'е' => 'e', 'о' => 'o', 'р' => 'p', 'у' => 'y' ); echo strtr($str, $trans);
based on YvFH3
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Al(OH)3х12H2O