3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is çthe, sample ştext.üfor replace the each words in, array"; $str = ucwords(strtolower($str), ',\'. '); function customUpper($s) { $old = array('ş', 'i', 'ğ', 'ü', 'ö', 'ç', 'ı'); $new = array('Ş', 'İ', 'Ğ', 'Ü', 'Ö', 'Ç', 'I'); return str_replace($old, $new, $s); } echo customUpper($str);

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.5.30.0090.00817.45
8.5.20.0090.00920.31
8.5.10.0080.00920.06
8.5.00.0110.00920.02
8.4.180.0100.01419.70
8.4.170.0160.00520.32
8.4.160.0130.00823.77
8.4.150.0080.00416.84
8.4.140.0100.01217.45
8.4.130.0030.00718.91
8.4.120.0080.00824.10
8.4.110.0040.00522.34
8.4.100.0140.00619.04
8.4.90.0100.01120.53
8.4.80.0080.01018.71
8.4.70.0090.00318.74
8.4.60.0090.01118.82
8.4.50.0120.00818.64
8.4.40.0130.00717.82
8.4.30.0060.00317.84
8.4.20.0140.00717.35
8.4.10.0120.00917.68
8.3.300.0110.00920.75
8.3.290.0110.00820.80
8.3.280.0110.01218.22
8.3.270.0060.00316.30
8.3.260.0070.00916.61
8.3.250.0110.00818.95
8.3.240.0060.00717.16
8.3.230.0080.01116.68
8.3.220.0130.00518.80
8.3.210.0110.00818.16
8.3.200.0060.00216.61
8.3.190.0090.01018.68
8.3.180.0120.00618.96
8.3.170.0090.00916.53
8.3.160.0140.00417.12
8.3.150.0090.00916.45
8.3.140.0140.00419.06
8.3.130.0040.00418.32
8.3.120.0040.00418.96
8.3.110.0080.00018.56
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0030.00619.36
8.3.70.0120.00616.50
8.3.60.0100.00716.50
8.3.50.0130.00521.21
8.3.40.0040.01218.81
8.3.30.0110.00718.59
8.3.20.0040.00420.34
8.3.10.0030.00523.51
8.3.00.0030.00623.66
8.2.300.0130.00822.27
8.2.290.0060.01220.10
8.2.280.0100.00718.47
8.2.270.0000.00816.36
8.2.260.0040.01216.41
8.2.250.0070.00316.61
8.2.240.0120.00017.18
8.2.230.0080.00320.94
8.2.220.0070.00337.54
8.2.210.0070.00726.77
8.2.200.0090.00018.88
8.2.190.0040.01118.29
8.2.180.0070.01318.54
8.2.170.0150.00419.09
8.2.160.0080.00622.96
8.2.150.0060.00325.66
8.2.140.0180.00024.66
8.2.130.0090.00026.16
8.2.120.0050.00319.55
8.2.110.0050.00519.30
8.2.100.0040.00817.91
8.2.90.0060.00319.14
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00817.63
8.2.50.0000.00818.04
8.2.40.0000.00819.35
8.2.30.0040.00420.45
8.2.20.0040.00417.57
8.2.10.0030.00518.12
8.2.00.0040.00417.97
8.1.340.0150.00917.47
8.1.330.0050.00322.09
8.1.320.0100.00816.01
8.1.310.0090.00916.02
8.1.300.0060.00317.54
8.1.290.0000.01030.84
8.1.280.0060.01225.92
8.1.270.0030.00622.18
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00321.28
8.1.230.0120.00019.29
8.1.220.0030.00517.77
8.1.210.0030.00718.77
8.1.200.0000.00817.53
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0040.00422.13
8.1.150.0070.00018.78
8.1.140.0030.00519.49
8.1.130.0040.00417.29
8.1.120.0000.00817.39
8.1.110.0040.00417.27
8.1.100.0000.00917.41
8.1.90.0000.00817.30
8.1.80.0050.00317.37
8.1.70.0070.00017.45
8.1.60.0030.00617.48
8.1.50.0030.00617.52
8.1.40.0040.00417.52
8.1.30.0040.00417.61
8.1.20.0050.00317.63
8.1.10.0000.00717.48
8.1.00.0030.00517.33
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.41
8.0.270.0000.00817.29
8.0.260.0040.00416.87
8.0.250.0000.00716.91
8.0.240.0070.00016.98
8.0.230.0070.00016.93
8.0.220.0030.00316.82
8.0.210.0040.00416.81
8.0.200.0030.00316.78
8.0.190.0000.00816.86
8.0.180.0040.00416.82
8.0.170.0030.00516.89
8.0.160.0030.00316.81
8.0.150.0040.00416.73
8.0.140.0030.00716.76
8.0.130.0090.00013.34
8.0.120.0030.00516.73
8.0.110.0040.00416.79
8.0.100.0000.00716.70
8.0.90.0050.00216.86
8.0.80.0060.01016.86
8.0.70.0000.00716.86
8.0.60.0000.00716.88
8.0.50.0070.00016.87
8.0.30.0080.00817.03
8.0.20.0120.00617.40
8.0.10.0000.00717.00
8.0.00.0130.00816.62
7.4.330.0000.00516.73
7.4.320.0030.00316.44
7.4.300.0030.00316.49
7.4.290.0000.00716.60
7.4.280.0030.00916.55
7.4.270.0000.00616.43
7.4.260.0030.00316.58
7.4.250.0040.00416.36
7.4.240.0030.00416.49
7.4.230.0000.00716.30
7.4.220.0150.00316.61
7.4.210.0110.00616.56
7.4.200.0000.00816.35
7.4.160.0090.00616.47
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0070.01016.53
7.4.120.0160.00716.51
7.4.110.0030.01416.40
7.4.100.0100.00716.31
7.4.90.0060.01016.42
7.4.80.0100.00619.39
7.4.70.0100.00716.55
7.4.60.0130.00316.66
7.4.50.0070.00716.41
7.4.40.0130.00916.55
7.4.30.0060.01116.34
7.4.00.0060.00314.91
7.3.330.0000.00613.23
7.3.320.0030.00313.07
7.3.310.0040.00316.20
7.3.300.0070.00016.24
7.3.290.0030.00316.29
7.3.280.0130.00616.25
7.3.270.0030.01517.40
7.3.260.0030.01416.26
7.3.250.0120.00516.26
7.3.240.0080.00816.45
7.3.230.0120.00616.46
7.3.210.0060.01216.48
7.3.200.0090.01219.39
7.3.190.0100.01316.15
7.3.180.0040.01216.30
7.3.170.0060.00916.39
7.3.160.0090.00616.16
7.2.330.0090.01516.38
7.2.320.0120.01216.36
7.2.310.0090.00916.38
7.2.300.0100.01316.61
7.2.290.0140.00916.73
7.2.60.0070.01316.85
7.2.00.0000.01219.54
7.1.200.0000.00715.48
7.1.100.0000.01018.29
7.1.70.0060.00317.15
7.1.60.0120.00819.20
7.1.50.0170.00717.04
7.1.00.0100.06722.54
7.0.200.0070.00316.67
7.0.60.0000.08321.79
7.0.50.0000.04717.72
7.0.40.0030.04319.96
7.0.30.0200.05720.34
7.0.20.0370.07320.38
7.0.10.0100.05320.15
7.0.00.0030.09320.32
5.6.280.0000.03720.87
5.6.210.0100.08320.68
5.6.200.0070.08318.18
5.6.190.0130.07320.50
5.6.180.0200.08320.61
5.6.170.0370.05720.56
5.6.160.0030.06320.54
5.6.150.0030.08718.27
5.6.140.0030.06318.14
5.6.130.0070.07018.18
5.6.120.0100.07321.05
5.6.110.0130.04021.00
5.6.100.0200.07320.98
5.6.90.0100.05320.98
5.6.80.0070.04720.51
5.5.350.0100.04020.43
5.5.340.0100.07717.97
5.5.330.0070.05020.35
5.5.320.0130.06020.53
5.5.310.0330.07020.37
5.5.300.0130.05017.98
5.5.290.0030.07317.98
5.5.280.0030.08720.88
5.5.270.0000.08020.77
5.5.260.0130.03720.88
5.5.250.0100.07320.55
5.5.240.0130.07020.28

preferences:
55.42 ms | 1495 KiB | 5 Q