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.30
8.3.50.0150.00521.98
8.3.40.0040.01118.93
8.3.30.0060.01219.11
8.3.20.0080.00020.08
8.3.10.0070.00021.90
8.3.00.0070.00019.02
8.2.180.0150.00616.63
8.2.170.0130.00322.96
8.2.160.0070.01022.00
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00019.66
8.2.110.0140.00720.39
8.2.100.0090.00318.03
8.2.90.0000.00819.22
8.2.80.0060.00317.97
8.2.70.0000.00817.49
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0040.00418.15
8.2.30.0080.00018.05
8.2.20.0000.00717.70
8.2.10.0040.00417.89
8.2.00.0070.00017.62
8.1.280.0100.01025.92
8.1.270.0000.01018.83
8.1.260.0050.00226.35
8.1.250.0030.00628.09
8.1.240.0000.00923.98
8.1.230.0070.00319.04
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0090.00017.12
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0080.00018.66
8.1.160.0030.00322.02
8.1.150.0000.00718.79
8.1.140.0040.00417.53
8.1.130.0000.00717.69
8.1.120.0030.00617.42
8.1.110.0000.00717.40
8.1.100.0000.00717.48
8.1.90.0040.00417.48
8.1.80.0040.00417.30
8.1.70.0070.00017.44
8.1.60.0040.00417.50
8.1.50.0000.00917.49
8.1.40.0080.00017.43
8.1.30.0050.00317.61
8.1.20.0060.00617.49
8.1.10.0040.00417.43
8.1.00.0030.00517.41
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0070.00017.23
8.0.260.0000.00717.11
8.0.250.0000.00716.89
8.0.240.0040.00416.94
8.0.230.0030.00316.82
8.0.220.0030.00316.86
8.0.210.0030.00316.86
8.0.200.0060.00016.90
8.0.190.0000.00916.84
8.0.180.0030.00516.82
8.0.170.0000.00816.84
8.0.160.0000.00716.80
8.0.150.0000.00716.84
8.0.140.0000.00716.80
8.0.130.0030.00313.42
8.0.120.0080.00016.88
8.0.110.0080.00016.96
8.0.100.0020.00516.79
8.0.90.0000.00816.82
8.0.80.0080.00816.78
8.0.70.0040.00416.88
8.0.60.0050.00316.82
8.0.50.0070.00016.84
8.0.30.0140.01417.06
8.0.20.0130.00717.40
8.0.10.0000.00817.04
8.0.00.0050.01416.93
7.4.330.0040.00415.03
7.4.320.0000.00616.52
7.4.300.0070.00016.63
7.4.290.0050.00216.49
7.4.280.0040.00416.58
7.4.270.0000.00716.47
7.4.260.0030.00316.49
7.4.250.0000.00716.50
7.4.240.0030.00416.42
7.4.230.0000.00816.73
7.4.220.0120.00616.67
7.4.210.0060.00916.64
7.4.200.0040.00416.63
7.4.160.0120.00316.47
7.4.150.0060.01217.40
7.4.140.0090.01217.86
7.4.130.0120.00516.52
7.4.120.0150.00216.51
7.4.110.0070.01016.53
7.4.100.0060.01616.52
7.4.90.0090.00916.56
7.4.80.0090.00919.39
7.4.70.0100.00616.58
7.4.60.0100.00616.65
7.4.50.0000.00816.46
7.4.40.0060.01116.66
7.4.30.0030.01316.32
7.4.00.0080.00815.18
7.3.330.0000.00613.37
7.3.320.0000.00513.20
7.3.310.0000.00716.19
7.3.300.0050.00216.25
7.3.290.0090.00616.35
7.3.280.0050.01116.36
7.3.270.0100.01317.40
7.3.260.0100.00716.34
7.3.250.0090.01216.33
7.3.240.0110.00716.64
7.3.230.0100.01416.46
7.3.210.0070.01116.39
7.3.200.0140.00519.39
7.3.190.0080.01116.30
7.3.180.0060.01016.62
7.3.170.0150.00416.29
7.3.160.0160.00616.37
7.3.120.0120.00314.79
7.3.110.0120.00614.64
7.3.100.0120.00614.95
7.3.90.0030.00615.04
7.3.80.0030.00714.78
7.3.70.0030.01314.63
7.3.60.0090.00314.98
7.3.50.0140.00014.72
7.3.40.0040.01114.56
7.3.30.0080.00414.83
7.3.20.0070.00716.77
7.3.10.0110.00816.47
7.3.00.0090.00516.68
7.2.330.0140.01016.77
7.2.320.0100.00616.59
7.2.310.0120.00416.32
7.2.300.0110.00716.57
7.2.290.0130.00816.70
7.2.250.0070.01115.06
7.2.240.0110.00815.13
7.2.230.0130.00314.95
7.2.220.0000.00914.87
7.2.210.0000.01615.05
7.2.200.0140.00314.74
7.2.190.0030.01314.95
7.2.180.0090.00615.20
7.2.170.0100.00315.07
7.2.130.0100.00516.61
7.2.120.0070.01016.58
7.2.110.0210.01016.93
7.2.100.0140.00316.46
7.2.90.0170.00716.71
7.2.80.0040.00916.64
7.2.70.0120.00616.70
7.2.60.0110.01117.06
7.2.50.0250.00716.96
7.2.40.0180.00516.45
7.2.30.0180.00016.43
7.2.20.0190.00316.68
7.2.10.0080.00416.63
7.2.00.0130.00518.23
7.1.330.0040.01115.85
7.1.320.0030.00515.84
7.1.310.0030.00615.77
7.1.300.0060.01215.64
7.1.290.0090.00615.70
7.1.280.0090.00415.91
7.1.270.0060.00615.73
7.1.260.0070.00715.87
7.1.250.0060.00915.66
7.1.200.0000.01015.64
7.1.100.0040.00817.96
7.1.70.0000.00717.28
7.1.60.0090.00919.46
7.1.50.0090.01316.84
7.1.00.0070.07322.32
7.0.200.0150.00914.68
7.0.140.0000.05022.04
7.0.60.0100.05319.88
7.0.50.0070.08017.87
7.0.40.0000.04720.16
7.0.30.0230.04020.08
7.0.20.0370.06720.25
7.0.10.0100.08020.06
7.0.00.0030.07720.05
5.6.280.0130.06020.93
5.6.210.0100.08020.52
5.6.200.0130.08318.12
5.6.190.0030.08020.33
5.6.180.0430.05020.59
5.6.170.0330.06720.76
5.6.160.0070.07720.56
5.6.150.0070.07718.21
5.6.140.0170.06018.17
5.6.130.0000.04318.27
5.6.120.0070.07320.91
5.6.110.0100.06321.12
5.6.100.0030.05321.00
5.6.90.0130.08020.96
5.6.80.0100.06720.50
5.5.350.0330.07020.44
5.5.340.0100.07717.98
5.5.330.0130.07320.48
5.5.320.0030.04020.27
5.5.310.0300.05320.24
5.5.300.0030.04017.99
5.5.290.0100.07718.00
5.5.280.0100.08020.65
5.5.270.0070.08320.75
5.5.260.0100.04020.65
5.5.250.0030.09020.69
5.5.240.0000.07020.24
5.4.450.0500.07019.48
5.4.440.0830.05319.55
5.4.430.0100.05719.42
5.4.420.0130.05319.53
5.4.410.0070.05719.32
5.4.400.0170.06719.38
5.4.390.0370.04318.70
5.4.380.0270.05018.75
5.4.370.0230.04718.53
5.4.360.0230.05718.74
5.4.350.0170.05718.79
5.4.340.0230.04718.63
5.4.320.0170.05718.53
5.4.310.0130.05718.70
5.4.300.0270.04718.53
5.4.290.0430.04018.50
5.4.280.0100.06018.72
5.4.270.0230.05018.77
5.4.260.0230.07018.49
5.4.250.0230.05018.78
5.4.240.0230.07018.58
5.4.230.0170.05318.54
5.4.220.0170.05718.79
5.4.210.0270.04318.71
5.4.200.0370.03716.80
5.4.190.0200.05718.73
5.4.180.0230.05718.77
5.4.170.0170.05018.73
5.4.160.0100.05718.68
5.4.150.0230.05718.49
5.4.140.0130.06016.39
5.4.130.0170.05016.45
5.4.120.0200.04316.24
5.4.110.0230.04716.17
5.4.100.0170.05016.30
5.4.90.0230.04716.34
5.4.80.0170.05016.37
5.4.70.0330.03716.23
5.4.60.0170.05016.27
5.4.50.0100.05716.27
5.4.40.0200.04716.42
5.4.30.0070.06016.16
5.4.20.0200.06016.29
5.4.10.0100.06016.26
5.4.00.0130.05015.78
5.3.290.0130.06014.72
5.3.280.0130.05314.79
5.3.270.0130.05714.65
5.3.260.0170.05714.63
5.3.250.0200.04714.65
5.3.240.0200.05714.65
5.3.230.0130.05714.77
5.3.220.0130.05714.62
5.3.210.0030.06714.55
5.3.200.0130.05014.75
5.3.190.0200.04714.68
5.3.180.0200.05014.57
5.3.170.0270.04314.57
5.3.160.0270.04014.56
5.3.150.0130.05314.63
5.3.140.0330.05714.72
5.3.130.0200.06014.63
5.3.120.0130.05714.65
5.3.110.0170.05714.65
5.3.100.0200.04714.05
5.3.90.0170.05014.21
5.3.80.0170.05314.05
5.3.70.0100.05714.24
5.3.60.0200.04714.05
5.3.50.0300.04014.01
5.3.40.0330.04013.95
5.3.30.0130.05313.90
5.3.20.0070.07013.69
5.3.10.0230.05713.79
5.3.00.0170.05313.74
5.2.170.0130.04011.24
5.2.160.0070.04311.14
5.2.150.0230.04711.34
5.2.140.0130.05011.26
5.2.130.0130.03711.14
5.2.120.0070.04711.21
5.2.110.0070.04311.14
5.2.100.0100.04311.08
5.2.90.0130.04311.21
5.2.80.0170.03711.13
5.2.70.0100.04311.09
5.2.60.0070.04311.16
5.2.50.0170.04011.14
5.2.40.0070.06011.10
5.2.30.0100.04311.00
5.2.20.0130.03711.04
5.2.10.0100.04011.04
5.2.00.0070.04710.91
5.1.60.0070.04010.20
5.1.50.0170.02710.03
5.1.40.0130.03310.16
5.1.30.0100.04010.39
5.1.20.0070.04710.38
5.1.10.0130.04010.11
5.1.00.0130.03710.21
5.0.50.0100.0278.63
5.0.40.0070.0278.44
5.0.30.0070.0508.24
5.0.20.0100.0278.34
5.0.10.0130.0278.15
5.0.00.0100.0408.27
4.4.90.0000.0275.92
4.4.80.0000.0276.01
4.4.70.0070.0205.90
4.4.60.0070.0205.88
4.4.50.0030.0275.96
4.4.40.0000.0405.97
4.4.30.0030.0275.89
4.4.20.0030.0235.97
4.4.10.0030.0236.07
4.4.00.0100.0305.92
4.3.110.0070.0205.85
4.3.100.0030.0235.82
4.3.90.0100.0175.84
4.3.80.0130.0305.79
4.3.70.0030.0235.82
4.3.60.0130.0135.84
4.3.50.0000.0275.82
4.3.40.0030.0335.74
4.3.30.0030.0234.54
4.3.20.0030.0234.57
4.3.10.0070.0204.49
4.3.00.0200.0239.16

preferences:
47.21 ms | 401 KiB | 5 Q