3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sentence = 'y HeloWerld'; $werds = preg_split('/(?=[A-Z])/',$sentence); var_dump(preg_replace('/\s+/','',ucwords(implode(' ',$werds))));
based on lB6Vi
Output for 5.3.21 - 7.3.0rc4
string(10) "YHeloWerld"