3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $package = 'es_es'; $packageArr = explode('_', $package); $res = $packageArr[0] . '_' . strtoupper($packageArr[1]); //todo var_dump($res);
Output for 4.3.0 - 7.2.0
string(5) "es_ES"