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 $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.0180.00018.43
8.3.50.0090.00821.99
8.3.40.0170.00318.97
8.3.30.0090.00618.93
8.3.20.0040.00420.19
8.3.10.0080.00021.71
8.3.00.0040.00419.19
8.2.180.0130.00916.63
8.2.170.0090.00622.96
8.2.160.0100.00722.12
8.2.150.0080.00024.18
8.2.140.0080.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00919.66
8.2.110.0060.00320.33
8.2.100.0060.00618.09
8.2.90.0090.00019.17
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0040.00417.93
8.2.20.0070.00017.57
8.2.10.0000.00817.92
8.2.00.0040.00417.65
8.1.280.0030.01725.92
8.1.270.0090.00018.70
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00422.18
8.1.230.0070.00419.23
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00718.35
8.1.160.0000.00721.90
8.1.150.0070.00018.84
8.1.140.0070.00017.44
8.1.130.0030.00517.81
8.1.120.0000.00717.37
8.1.110.0050.00317.43
8.1.100.0060.00317.32
8.1.90.0000.00717.41
8.1.80.0000.00717.35
8.1.70.0020.00517.34
8.1.60.0040.00417.43
8.1.50.0030.00517.44
8.1.40.0040.00417.49
8.1.30.0030.00517.61
8.1.20.0070.00317.61
8.1.10.0040.00417.42
8.1.00.0000.00717.26
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.46
8.0.270.0000.00717.19
8.0.260.0000.00617.20
8.0.250.0030.00316.93
8.0.240.0000.00816.86
8.0.230.0030.00316.91
8.0.220.0000.00716.72
8.0.210.0030.00316.80
8.0.200.0000.00616.92
8.0.190.0040.00416.95
8.0.180.0040.00416.86
8.0.170.0060.00316.96
8.0.160.0030.00316.94
8.0.150.0000.00816.72
8.0.140.0030.00416.77
8.0.130.0000.00513.28
8.0.120.0000.00716.80
8.0.110.0070.00016.82
8.0.100.0060.00316.96
8.0.90.0050.00316.71
8.0.80.0100.00616.86
8.0.70.0030.00516.88
8.0.60.0040.00416.86
8.0.50.0000.00716.79
8.0.30.0170.00817.10
8.0.20.0120.00717.40
8.0.10.0040.00416.84
8.0.00.0200.01016.79
7.4.330.0080.00015.03
7.4.320.0000.00716.50
7.4.300.0000.00716.50
7.4.290.0050.00316.46
7.4.280.0080.00016.50
7.4.270.0030.00316.51
7.4.260.0030.00316.45
7.4.250.0040.00416.58
7.4.240.0030.00316.49
7.4.230.0070.00016.50
7.4.220.0090.00916.52
7.4.210.0000.01416.50
7.4.200.0070.00016.49
7.4.160.0060.00916.68
7.4.150.0060.01317.40
7.4.140.0050.01217.86
7.4.130.0090.00816.52
7.4.120.0080.00816.44
7.4.110.0140.00316.41
7.4.100.0030.01316.57
7.4.90.0030.01416.63
7.4.80.0110.00719.39
7.4.70.0090.00916.57
7.4.60.0070.01016.60
7.4.50.0000.00816.54
7.4.40.0040.01116.44
7.4.30.0030.01416.49
7.4.00.0070.00914.87
7.3.330.0030.00313.36
7.3.320.0060.00013.46
7.3.310.0060.00016.41
7.3.300.0040.00416.18
7.3.290.0090.00516.36
7.3.280.0100.00616.36
7.3.270.0110.00717.40
7.3.260.0030.01416.30
7.3.250.0070.00916.31
7.3.240.0140.00716.36
7.3.230.0120.00916.39
7.3.210.0060.01116.32
7.3.200.0110.01219.39
7.3.190.0100.01016.59
7.3.180.0090.00616.47
7.3.170.0120.00916.43
7.3.160.0110.00416.39
7.3.120.0060.01114.82
7.3.110.0050.01214.71
7.3.100.0020.01314.89
7.3.90.0040.00914.72
7.3.80.0050.01115.00
7.3.70.0040.00914.88
7.3.60.0010.01214.95
7.3.50.0080.00514.68
7.3.40.0020.00814.79
7.3.30.0000.01014.69
7.3.20.0050.00716.64
7.3.10.0090.00516.58
7.3.00.0040.01016.77
7.2.330.0090.00916.68
7.2.320.0070.01016.76
7.2.310.0060.01016.75
7.2.300.0130.00416.73
7.2.290.0140.00816.62
7.2.250.0090.00915.02
7.2.240.0070.01315.02
7.2.230.0100.00615.21
7.2.220.0020.01114.97
7.2.210.0040.01215.10
7.2.200.0050.01115.12
7.2.190.0050.00814.96
7.2.180.0070.00514.80
7.2.170.0070.00414.88
7.2.60.0120.00316.75
7.1.330.0050.00715.76
7.1.320.0040.01115.51
7.1.310.0030.00815.82
7.1.300.0020.01115.71
7.1.290.0030.00915.69
7.1.280.0020.01015.89
7.1.270.0000.00815.78
7.1.260.0070.00915.68
7.1.200.0050.00515.57
7.1.70.0040.00417.41
7.1.60.0150.00919.46
7.1.50.0060.01617.00
7.1.00.0030.07722.31
7.0.200.0040.00814.93
7.0.140.0070.05321.99
7.0.60.0100.06320.00
7.0.50.0100.08017.80
7.0.40.0000.04720.20
7.0.30.0100.04720.15
7.0.20.0370.07320.07
7.0.10.0000.04720.24
7.0.00.0070.06320.06
5.6.280.0000.07720.80
5.6.210.0070.08320.57
5.6.200.0170.07718.18
5.6.190.0170.03020.52
5.6.180.0470.03320.48
5.6.170.0230.06020.56
5.6.160.0070.04320.48
5.6.150.0130.07318.16
5.6.140.0130.07718.13
5.6.130.0000.04318.17
5.6.120.0130.07721.04
5.6.110.0100.08321.10
5.6.100.0100.04021.02
5.6.90.0100.06720.98
5.6.80.0130.07020.42
5.5.350.0230.07720.42
5.5.340.0170.07317.97
5.5.330.0030.04320.57
5.5.320.0300.04020.52
5.5.310.0300.06320.41
5.5.300.0070.05017.94
5.5.290.0030.04717.95
5.5.280.0070.08320.78
5.5.270.0130.08020.79
5.5.260.0030.06020.80
5.5.250.0170.05720.55
5.5.240.0070.04320.28
5.4.450.0370.06719.48
5.4.440.0600.05019.61
5.4.430.0100.05719.41
5.4.420.0070.06019.39
5.4.410.0100.08019.11
5.4.400.0070.05719.23
5.4.390.0200.05318.48
5.4.380.0130.05718.75
5.4.370.0130.06318.75
5.4.360.0070.06018.75
5.4.350.0170.05318.81
5.4.340.0130.05318.50
5.4.320.0130.06318.80
5.4.310.0170.06318.84
5.4.300.0130.05718.80
5.4.290.0130.05318.55
5.4.280.0100.06718.52
5.4.270.0300.04018.80
5.4.260.0130.05718.83
5.4.250.0200.05718.55
5.4.240.0200.05018.75
5.4.230.0300.04018.46
5.4.220.0130.06018.77
5.4.210.0200.05318.49
5.4.200.0130.05316.55
5.4.190.0270.04318.60
5.4.180.0200.05018.68
5.4.170.0200.05018.73
5.4.160.0100.05718.48
5.4.150.0170.05018.86
5.4.140.0270.04016.45
5.4.130.0230.04016.34
5.4.120.0170.05016.29
5.4.110.0170.04716.21
5.4.100.0100.05716.26
5.4.90.0170.05016.30
5.4.80.0100.05316.23
5.4.70.0170.05716.23
5.4.60.0130.05016.15
5.4.50.0170.05016.40
5.4.40.0070.06016.27
5.4.30.0200.04316.22
5.4.20.0270.04716.40
5.4.10.0230.04016.25
5.4.00.0170.05315.75
5.3.290.0130.05714.88
5.3.280.0200.05014.63
5.3.270.0100.06014.65
5.3.260.0270.04314.70
5.3.250.0100.05314.60
5.3.240.0130.05714.74
5.3.230.0100.06014.57
5.3.220.0200.05014.59
5.3.210.0100.06014.62
5.3.200.0200.05014.71
5.3.190.0230.06014.61
5.3.180.0070.06014.78
5.3.170.0300.04014.68
5.3.160.0170.05014.66
5.3.150.0170.05314.61
5.3.140.0070.06014.60
5.3.130.0200.05314.61
5.3.120.0130.05714.64
5.3.110.0170.05314.75
5.3.100.0070.05714.03
5.3.90.0130.05314.05
5.3.80.0100.05713.97
5.3.70.0130.05014.19
5.3.60.0070.05714.12
5.3.50.0200.04713.98
5.3.40.0100.06014.07
5.3.30.0170.04713.91
5.3.20.0200.04313.72
5.3.10.0130.05313.69
5.3.00.0170.05313.66
5.2.170.0030.05011.27
5.2.160.0100.04311.17
5.2.150.0070.04711.18
5.2.140.0170.04011.20
5.2.130.0100.04011.13
5.2.120.0170.03311.17
5.2.110.0130.04011.20
5.2.100.0030.05011.13
5.2.90.0170.04011.14
5.2.80.0130.04011.12
5.2.70.0070.04711.16
5.2.60.0070.05011.04
5.2.50.0070.05011.13
5.2.40.0170.04010.97
5.2.30.0100.04310.98
5.2.20.0130.03711.07
5.2.10.0100.04310.91
5.2.00.0100.04310.79
5.1.60.0130.03010.11
5.1.50.0100.03710.03
5.1.40.0200.02710.09
5.1.30.0130.03310.33
5.1.20.0100.03710.39
5.1.10.0130.03310.09
5.1.00.0100.03710.09
5.0.50.0100.0278.69
5.0.40.0100.0278.43
5.0.30.0070.0478.35
5.0.20.0070.0308.20
5.0.10.0000.0338.28
5.0.00.0130.0378.18
4.4.90.0070.0235.93
4.4.80.0070.0235.87
4.4.70.0070.0205.89
4.4.60.0030.0235.91
4.4.50.0100.0175.95
4.4.40.0030.0405.92
4.4.30.0000.0305.88
4.4.20.0100.0205.97
4.4.10.0070.0205.98
4.4.00.0030.0405.92
4.3.110.0070.0205.86
4.3.100.0000.0275.82
4.3.90.0100.0175.77
4.3.80.0070.0335.77
4.3.70.0030.0275.84
4.3.60.0000.0275.84
4.3.50.0000.0275.80
4.3.40.0070.0305.79
4.3.30.0070.0204.59
4.3.20.0030.0234.59
4.3.10.0070.0204.48
4.3.00.0130.0179.16

preferences:
40.14 ms | 401 KiB | 5 Q