3v4l.org

run code in 300+ PHP versions simultaneously
<?php function to_camel_case($str) { $str = strtolower($str); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $str); } echo to_camel_case($key = 'me_ApetEce_comer_algo_jajjajaj';);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.230.0110.04212.39
5.4.220.0120.04112.40
5.4.210.0120.03912.40
5.4.200.0090.04312.40
5.4.190.0100.04112.39
5.4.180.0200.06012.39
5.4.170.0130.03712.40
5.4.160.0130.03812.40
5.4.150.0100.04212.39
5.4.140.0100.04212.09
5.4.130.0210.06012.06
5.4.120.0110.04012.04
5.4.110.0140.03812.03
5.4.100.0100.04112.03
5.4.90.0100.04112.03
5.4.80.0100.04212.03
5.4.70.0100.04112.03
5.4.60.0110.03812.02
5.4.50.0100.03812.02
5.4.40.0130.03912.01
5.4.30.0100.03912.01
5.4.20.0100.04012.00
5.4.10.0090.04512.01
5.4.00.0110.03811.50
5.3.280.0140.05612.71
5.3.270.0160.04512.72
5.3.260.0120.04312.72
5.3.250.0110.04412.72
5.3.240.0130.04212.72
5.3.230.0120.04312.71
5.3.220.0150.03912.68
5.3.210.0100.04512.68
5.3.200.0160.05512.68
5.3.190.0120.04712.68
5.3.180.0120.04012.67
5.3.170.0120.04212.67
5.3.160.0110.04112.67
5.3.150.0120.04112.67
5.3.140.0100.04212.66
5.3.130.0130.04112.66
5.3.120.0240.06112.66
5.3.110.0160.04512.66
5.3.100.0110.04512.13
5.3.90.0120.04112.10
5.3.80.0130.04012.09
5.3.70.0100.04512.09
5.3.60.0140.03812.08
5.3.50.0110.04512.02
5.3.40.0120.04312.02
5.3.30.0120.03911.98
5.3.20.0100.03911.76
5.3.10.0120.04011.73
5.3.00.0100.04011.71

preferences:
141.28 ms | 1386 KiB | 7 Q