3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function uncamel($content, $separator = '_') { $content = preg_replace('#(?<=[a-zA-Z])([A-Z])(?=[a-zA-Z])#e', "'$separator' . strtolower('$1')", $content); $content{0} = strtolower($content{0}); return $content; } var_dump(uncamel('rfqInternalRefNo'));
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/4kYGX on line 5 array(1) { [0]=> string(0) "" }
Output for 5.5.0 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/4kYGX on line 5 string(19) "rfq_internal_ref_no"
Output for 4.3.0 - 5.4.45
string(19) "rfq_internal_ref_no"