3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function camelCase($string) { preg_replace('/[^a-zA-Z0-9]/', '', ucwords(str_replace('/',' ',strtolower($path)))); return $string; } echo camelCase('common/home'); echo camelCase('common_home');
based on icYNO
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: path in /in/fl36a on line 4 common/home Notice: Undefined variable: path in /in/fl36a on line 4 common_home
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: path in /in/fl36a on line 4 common/home Notice: Undefined variable: path in /in/fl36a on line 4 common_home