3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? function __call($name) { $name = strtolower($name); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); } echo __call($key = 'me_ApetEce_COMER_algo_jajjajaj');
Output for 5.4.0 - 7.1.0
meApeteceComerAlgoJajjajaj
Output for 4.3.0 - 5.3.29
<? function __call($name) { $name = strtolower($name); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); } echo __call($key = 'me_ApetEce_COMER_algo_jajjajaj');