3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all('/([A-Z0-9][0-9]*(?=$|[A-Z][a-z])|[A-Z][a-z]+)/', 'NewFolder3', $decamelCase); var_dump($decamelCase);
Output for 4.3.0 - 7.2.0
array(2) { [0]=> array(3) { [0]=> string(3) "New" [1]=> string(6) "Folder" [2]=> string(1) "3" } [1]=> array(3) { [0]=> string(3) "New" [1]=> string(6) "Folder" [2]=> string(1) "3" } }