3v4l.org

run code in 300+ PHP versions simultaneously
<?php function camelCase($string) { //preg_replace('/[^a-zA-Z0-9]/', '', ucwords(str_replace('/',' ',strtolower($string)))); //return preg_replace_callback('/\/[a-zA-Z9-0]/', function($matches){return strtoupper($matches[0][1]);}, $string); return preg_replace_callback('/\/[a-zA-Z9-0]/', function($matches){return ucword($matches[0]);}, $string); return $string; } echo camelCase('common/home');

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)
8.3.60.0140.00718.43
8.3.50.0100.00822.01
8.3.40.0100.00718.80
8.3.30.0140.00419.06
8.3.20.0000.00720.16
8.3.10.0080.00021.77
8.3.00.0070.00018.98
8.2.180.0130.01016.63
8.2.170.0090.00918.91
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.41
8.2.110.0040.00720.35
8.2.100.0040.00717.78
8.2.90.0030.00517.84
8.2.80.0060.00317.97
8.2.70.0050.00317.80
8.2.60.0030.00517.91
8.2.50.0040.00418.10
8.2.40.0060.00319.82
8.2.30.0000.00818.07
8.2.20.0000.00817.67
8.2.10.0080.00017.92
8.2.00.0040.00417.79
8.1.280.0170.00325.92
8.1.270.0050.00518.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00917.23
8.1.230.0060.00920.70
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00617.13
8.1.190.0080.00017.11
8.1.180.0050.00318.10
8.1.170.0000.00818.73
8.1.160.0040.00421.90
8.1.150.0040.00418.75
8.1.140.0080.00017.40
8.1.130.0030.00317.82
8.1.120.0030.00517.34
8.1.110.0080.00017.32
8.1.100.0040.00417.38
8.1.90.0040.00417.45
8.1.80.0000.00717.29
8.1.70.0000.00717.46
8.1.60.0000.00817.53
8.1.50.0040.00417.46
8.1.40.0030.00617.50
8.1.30.0040.00417.50
8.1.20.0030.00617.59
8.1.10.0000.00717.41
8.1.00.0000.00717.24
8.0.300.0040.00421.46
8.0.290.0000.00916.63
8.0.280.0050.00218.43
8.0.270.0040.00416.82
8.0.260.0000.00618.38
8.0.250.0000.00616.96
8.0.240.0030.00616.81
8.0.230.0000.00716.81
8.0.220.0030.00316.85
8.0.210.0040.00416.70
8.0.200.0030.00317.00
8.0.190.0040.00416.88
8.0.180.0000.00716.93
8.0.170.0000.00816.91
8.0.160.0070.00016.77
8.0.150.0000.00816.87
8.0.140.0000.00916.82
8.0.130.0040.00413.30
8.0.120.0070.00016.82
8.0.110.0080.00016.81
8.0.100.0040.00416.75
8.0.90.0040.00416.80
8.0.80.0100.00616.85
8.0.70.0080.00016.94
8.0.60.0050.00316.86
8.0.50.0000.00816.79
8.0.30.0120.01217.15
8.0.20.0120.01017.40
8.0.10.0000.00716.90
8.0.00.0060.01116.86
7.4.330.0030.00315.14
7.4.320.0050.00216.66
7.4.300.0030.00316.41
7.4.290.0040.00416.56
7.4.280.0000.00716.52
7.4.270.0030.00316.54
7.4.260.0030.00616.57
7.4.250.0000.00716.50
7.4.240.0020.00516.61
7.4.230.0070.00016.46
7.4.220.0130.00716.48
7.4.210.0040.01116.53
7.4.200.0000.00816.35
7.4.160.0120.00416.39
7.4.150.0070.01717.40
7.4.140.0120.00617.86
7.4.130.0100.00716.45
7.4.120.0070.01016.63
7.4.110.0140.00616.50
7.4.100.0140.00416.66
7.4.90.0140.00416.43
7.4.80.0110.01119.39
7.4.70.0030.01516.45
7.4.60.0030.01316.42
7.4.50.0050.00316.54
7.4.40.0090.00616.62
7.4.30.0080.00816.50
7.4.00.0070.00814.95
7.3.330.0060.00013.30
7.3.320.0000.00513.34
7.3.310.0020.00516.27
7.3.300.0030.00616.26
7.3.290.0070.00816.37
7.3.280.0070.01016.41
7.3.270.0090.00917.40
7.3.260.0160.00016.44
7.3.250.0060.01116.48
7.3.240.0070.01416.42
7.3.230.0100.01016.39
7.3.210.0100.00716.68
7.3.200.0130.00319.39
7.3.190.0130.00316.36
7.3.180.0100.00616.56
7.3.170.0090.00816.61
7.3.160.0090.00616.49
7.3.120.0030.01114.88
7.3.110.0030.01515.05
7.3.100.0070.00714.81
7.3.90.0070.00714.91
7.3.80.0050.00914.80
7.3.70.0050.00814.92
7.3.60.0060.00814.82
7.3.50.0080.00314.94
7.3.40.0070.00814.80
7.3.30.0050.00914.86
7.3.20.0100.00316.65
7.3.10.0050.01116.63
7.3.00.0050.00916.53
7.2.330.0070.01016.43
7.2.320.0100.00616.72
7.2.310.0070.01016.60
7.2.300.0070.01116.59
7.2.290.0170.00616.59
7.2.250.0060.01315.16
7.2.240.0070.01115.18
7.2.230.0090.00915.12
7.2.220.0040.00714.97
7.2.210.0060.00715.03
7.2.200.0060.00615.19
7.2.190.0070.00515.00
7.2.180.0040.00814.99
7.2.170.0050.00615.13
7.2.160.0070.00415.05
7.2.150.0100.00716.84
7.2.140.0080.01117.13
7.2.130.0060.01316.96
7.2.120.0070.01116.89
7.2.110.0000.01116.71
7.2.100.0030.01316.86
7.2.90.0070.01117.00
7.2.80.0030.01316.95
7.2.70.0100.00716.86
7.2.60.0060.00716.90
7.2.50.0070.00317.07
7.2.40.0000.01017.00
7.2.30.0040.00816.74
7.2.20.0070.00716.87
7.2.10.0000.01716.99
7.2.00.0050.00818.22
7.1.330.0050.00915.95
7.1.320.0020.01015.69
7.1.310.0020.00815.79
7.1.300.0050.00715.67
7.1.290.0050.00715.85
7.1.280.0080.00115.90
7.1.270.0020.01015.65
7.1.260.0070.00715.80
7.1.250.0000.01715.68
7.1.200.0100.00315.68
7.1.100.0000.01218.21
7.1.70.0080.00017.41
7.1.60.0060.01919.46
7.1.50.0070.01617.13
7.1.00.0030.07722.30
7.0.200.0030.00914.93
7.0.140.0000.03722.15
7.0.60.0070.06319.97
7.0.50.0000.07317.86
7.0.40.0030.04320.40
7.0.30.0170.04020.16
7.0.20.0300.08020.09
7.0.10.0000.06720.10
7.0.00.0130.07720.25
5.6.280.0070.07020.86
5.6.210.0100.05720.61
5.6.200.0100.08318.22
5.6.190.0070.06020.55
5.6.180.0630.04720.55
5.6.170.0270.08020.39
5.6.160.0170.07020.39
5.6.150.0100.08018.21
5.6.140.0030.06318.19
5.6.130.0070.03718.18
5.6.120.0100.08320.99
5.6.110.0170.06321.12
5.6.100.0100.07721.04
5.6.90.0070.05021.08
5.6.80.0070.05720.38
5.5.350.0270.05020.39
5.5.340.0130.05018.04
5.5.330.0030.04020.44
5.5.320.0000.04020.25
5.5.310.0300.08320.51
5.5.300.0170.07018.04
5.5.290.0070.08017.97
5.5.280.0070.08720.63
5.5.270.0070.08020.88
5.5.260.0070.06720.68
5.5.250.0100.07720.47
5.5.240.0030.07020.13
5.4.450.0600.04319.21
5.4.440.0630.05019.63
5.4.430.0130.07319.46
5.4.420.0130.05019.42
5.4.410.0070.05719.43
5.4.400.0070.05719.23
5.4.390.0170.05318.78
5.4.380.0170.05718.79
5.4.370.0070.06318.75
5.4.360.0230.04718.50
5.4.350.0300.04318.83
5.4.340.0200.07718.48
5.4.320.0200.06018.69
5.4.310.0230.05318.76
5.4.300.0200.05718.62
5.4.290.0170.05318.78
5.4.280.0170.05718.75
5.4.270.0200.05018.73
5.4.260.0170.05718.74
5.4.250.0200.05318.72
5.4.240.0130.06018.77
5.4.230.0130.05718.68
5.4.220.0130.06018.79
5.4.210.0100.07018.77
5.4.200.0070.07016.55
5.4.190.0270.05718.74
5.4.180.0230.05318.72
5.4.170.0170.06018.68
5.4.160.0130.06018.45
5.4.150.0170.06018.50
5.4.140.0070.06716.48
5.4.130.0200.06716.45
5.4.120.0100.05716.22
5.4.110.0200.04316.31
5.4.100.0100.05716.36
5.4.90.0070.07016.29
5.4.80.0130.05316.16
5.4.70.0200.05016.46
5.4.60.0170.05316.31
5.4.50.0200.04316.30
5.4.40.0200.04716.15
5.4.30.0030.07016.25
5.4.20.0130.07716.26
5.4.10.0130.05316.25
5.4.00.0170.04715.73
5.3.290.0130.07714.84
5.3.280.0170.05014.79
5.3.270.0070.06314.70
5.3.260.0200.05014.66
5.3.250.0130.06014.63
5.3.240.0300.04714.59
5.3.230.0170.05014.62
5.3.220.0070.06014.60
5.3.210.0200.05314.55
5.3.200.0170.05714.61
5.3.190.0300.04014.77
5.3.180.0230.04314.79
5.3.170.0170.05014.56
5.3.160.0230.04314.77
5.3.150.0130.05714.60
5.3.140.0130.05314.68
5.3.130.0070.06314.73
5.3.120.0230.06314.77
5.3.110.0070.06714.60
5.3.100.0200.05014.25
5.3.90.0200.05314.09
5.3.80.0230.04714.15
5.3.70.0100.06014.13
5.3.60.0130.05714.23
5.3.50.0200.04714.05
5.3.40.0170.05714.06
5.3.30.0170.05713.94
5.3.20.0230.04313.79
5.3.10.0270.04013.64
5.3.00.0200.06013.70
5.2.170.0100.05011.16
5.2.160.0170.04311.21
5.2.150.0170.04011.25
5.2.140.0070.05011.21
5.2.130.0200.04311.17
5.2.120.0100.04311.13
5.2.110.0270.04311.09
5.2.100.0170.04011.13
5.2.90.0130.04711.32
5.2.80.0170.04711.20
5.2.70.0100.04711.20
5.2.60.0070.05011.16
5.2.50.0100.04711.11
5.2.40.0130.03711.04
5.2.30.0100.04711.07
5.2.20.0070.05011.01
5.2.10.0200.03010.92
5.2.00.0030.04710.90
5.1.60.0100.03310.01
5.1.50.0130.03310.09
5.1.40.0070.03710.00
5.1.30.0070.04310.54
5.1.20.0100.04710.44
5.1.10.0130.04710.25
5.1.00.0030.04710.16
5.0.50.0100.0278.64
5.0.40.0030.0378.48
5.0.30.0130.0378.41
5.0.20.0030.0338.19
5.0.10.0100.0278.25
5.0.00.0000.0508.18
4.4.90.0100.0175.98
4.4.80.0030.0305.86
4.4.70.0100.0275.89
4.4.60.0030.0335.92
4.4.50.0070.0305.96
4.4.40.0070.0375.88
4.4.30.0070.0305.89
4.4.20.0070.0235.92
4.4.10.0070.0205.95
4.4.00.0030.0375.92
4.3.110.0030.0235.82
4.3.100.0030.0235.86
4.3.90.0130.0135.81
4.3.80.0000.0405.81
4.3.70.0030.0335.87
4.3.60.0030.0235.82
4.3.50.0030.0275.80
4.3.40.0030.0375.89
4.3.30.0000.0304.61
4.3.20.0070.0274.63
4.3.10.0100.0234.49
4.3.00.0100.0239.16

preferences:
54.02 ms | 401 KiB | 5 Q