3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=0; $time = microtime(true); while($i < 50) { $i++; preg_replace('/(^|[a-z])([A-Z])/e', 'strtolower(strlen("\\1") ? "\\1_\\2" : "\\2")', 'VeryLongClassName'); } $time = microtime(true) - $time; echo '1: ' . number_format($time, 3) ."\n"; $i=0; $time = microtime(true); while($i < 50) { $i++; // preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', '_'.'$0', 'VeryLongClassName')); } $time = microtime(true) - $time; echo '2: ' . number_format($time, 3) ."\n";
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/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/KkJse on line 7 1: 0.000 2: 0.000
Output for 4.3.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
1: 0.001 2: 0.000
Output for 5.5.27, 5.5.29, 5.5.34, 5.6.14, 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 1: 0.002 2: 0.000
Output for 5.5.24 - 5.5.26, 5.5.28, 5.5.30 - 5.5.33, 5.5.35 - 5.6.13, 5.6.15 - 5.6.21
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/KkJse on line 7 1: 0.001 2: 0.000