3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function df_explode_camel($name) {return preg_split('#(?<=[a-z])(?=[A-Z])#x', $name);} print_r(array_map('df_explode_camel', ['ZohoCRM', 'ZohoInventory', 'Dynamics365']));
based on 5oudA
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
Array ( [0] => Array ( [0] => Zoho [1] => CRM ) [1] => Array ( [0] => Zoho [1] => Inventory ) [2] => Array ( [0] => Dynamics365 ) )