3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $projectName = 'jh-hello/lol-code'; $parts = explode("/", $projectName); $vendor = implode('', array_map('ucfirst', explode("-", $parts[0]))); $nameSpace = implode('', array_map('ucfirst', explode("-", $parts[1]))); var_dump($vendor); var_dump($nameSpace);
Output for 4.3.0 - 7.2.0
string(7) "JhHello" string(7) "LolCode"