3v4l.org

run code in 300+ PHP versions simultaneously
<?php $enc = 'UTF-8'; $word = "РАЗРАБОТАТЬ"; $word = preg_replace('/\s+/', '', $word); $word = mb_convert_case($word, MB_CASE_TITLE, "UTF-8"); $count = mb_strlen($word, $enc); $new_word = mb_substr($word, 0, ($count - 1), $enc); $new_word = $new_word . mb_strtoupper(mb_substr($word,($count - 1), 1, $enc), $enc); echo $new_word;

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.20.0080.01019.59
8.5.10.0070.00416.86
8.5.00.0120.00920.16
8.4.170.0140.00720.41
8.4.160.0150.00820.56
8.4.150.0030.00014.05
8.4.140.0130.00817.73
8.4.130.0120.00818.43
8.4.120.0110.00922.14
8.4.110.0120.00818.78
8.4.100.0080.00418.12
8.4.90.0090.00420.69
8.4.80.0050.00424.16
8.4.70.0040.00619.05
8.4.60.0120.00920.29
8.4.50.0050.00318.86
8.4.40.0030.01619.61
8.4.30.0120.00919.74
8.4.20.0140.01020.42
8.4.10.0060.00317.70
8.3.300.0120.00819.39
8.3.290.0100.01020.85
8.3.280.0080.01218.60
8.3.270.0130.00816.86
8.3.260.0140.00616.75
8.3.250.0120.00717.01
8.3.240.0140.00516.67
8.3.230.0080.00316.87
8.3.220.0120.00618.90
8.3.210.0120.00718.59
8.3.200.0060.00216.70
8.3.190.0030.00617.00
8.3.180.0100.00919.04
8.3.170.0110.00717.13
8.3.160.0050.00916.76
8.3.150.0060.00917.29
8.3.140.0150.00316.48
8.3.130.0060.00318.29
8.3.120.0000.01120.54
8.3.110.0040.00420.94
8.3.100.0000.00816.88
8.3.90.0040.01118.54
8.3.80.0070.00318.30
8.3.70.0000.01516.50
8.3.60.0140.00316.48
8.3.50.0090.00618.22
8.3.40.0070.00718.50
8.3.30.0040.01118.71
8.3.20.0030.00523.64
8.3.10.0040.00423.39
8.3.00.0040.00423.65
8.2.300.0120.00820.32
8.2.290.0070.00317.12
8.2.280.0080.01018.49
8.2.270.0100.00516.85
8.2.260.0040.01117.20
8.2.250.0080.01117.18
8.2.240.0090.00019.11
8.2.230.0080.00822.58
8.2.220.0050.00524.06
8.2.210.0040.01126.77
8.2.200.0030.00618.79
8.2.190.0110.00720.66
8.2.180.0110.01416.50
8.2.170.0120.00622.96
8.2.160.0170.00020.52
8.2.150.0070.01124.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00420.53
8.2.110.0090.00020.47
8.2.100.0060.00617.97
8.2.90.0050.00317.97
8.2.80.0040.00419.21
8.2.70.0040.00417.75
8.2.60.0000.00817.88
8.2.50.0040.00417.50
8.2.40.0050.00519.73
8.2.30.0000.00819.20
8.2.20.0040.00417.97
8.2.10.0080.00019.23
8.2.00.0030.00519.49
8.1.340.0110.00820.15
8.1.330.0070.00618.25
8.1.320.0140.00616.31
8.1.310.0080.00016.60
8.1.300.0060.00318.00
8.1.290.0060.00318.88
8.1.280.0090.00625.92
8.1.270.0040.00418.86
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00019.26
8.1.230.0040.00720.90
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0000.00817.36
8.1.190.0050.00317.48
8.1.180.0030.00618.10
8.1.170.0000.00817.62
8.1.160.0040.00418.99
8.1.150.0040.00418.90
8.1.140.0000.00822.10
8.1.130.0040.00420.15
8.1.120.0000.00717.64
8.1.110.0040.00417.63
8.1.100.0030.00717.60
8.1.90.0070.00017.54
8.1.80.0000.01017.63
8.1.70.0000.00817.53
8.1.60.0090.00017.79
8.1.50.0030.00517.74
8.1.40.0050.00317.68
8.1.30.0080.00017.77
8.1.20.0030.00517.77
8.1.10.0040.00417.74
8.1.00.0040.00417.67
8.0.300.0020.00519.93
8.0.290.0040.00416.88
8.0.280.0000.00718.55
8.0.270.0030.00317.36
8.0.260.0030.00318.54
8.0.250.0000.00717.06
8.0.240.0000.00717.06
8.0.230.0030.00317.19
8.0.220.0050.00217.14
8.0.210.0070.00017.21
8.0.200.0030.00317.16
8.0.190.0000.00717.04
8.0.180.0040.00417.15
8.0.170.0070.00317.08
8.0.160.0000.00717.17
8.0.150.0030.00516.93
8.0.140.0040.00417.13
8.0.130.0030.00313.57
8.0.120.0030.00317.07
8.0.110.0030.00516.98
8.0.100.0000.00716.98
8.0.90.0050.00316.96
8.0.80.0060.01017.08
8.0.70.0040.00417.11
8.0.60.0000.00817.23
8.0.50.0040.00417.07
8.0.30.0070.01117.17
8.0.20.0060.01317.10
8.0.10.0040.00417.20
8.0.00.0140.00516.80
7.4.330.0000.00615.55
7.4.320.0070.00016.79
7.4.300.0030.00316.78
7.4.290.0030.00616.67
7.4.280.0050.00316.81
7.4.270.0030.00616.72
7.4.260.0040.00416.82
7.4.250.0000.00716.73
7.4.240.0000.00816.85
7.4.230.0000.00716.66
7.4.220.0000.00716.78
7.4.210.0050.01116.90
7.4.200.0050.00216.86
7.4.160.0110.00616.70
7.4.140.0120.00817.86
7.4.130.0130.00316.85
7.4.120.0110.00616.53
7.4.110.0070.01016.72
7.4.100.0070.01116.50
7.4.90.0140.00416.67
7.4.80.0070.01119.39
7.4.70.0080.00816.56
7.4.60.0150.00017.02
7.4.50.0030.01016.44
7.4.40.0070.01016.92
7.4.00.0070.01015.25
7.3.330.0030.00313.39
7.3.320.0030.00313.22
7.3.310.0000.00716.43
7.3.300.0070.00016.48
7.3.290.0000.00716.50
7.3.280.0050.01116.46
7.3.260.0110.00616.49
7.3.240.0120.00516.57
7.3.230.0030.01216.47
7.3.210.0070.01416.40
7.3.200.0070.01016.43
7.3.190.0100.01016.32
7.3.180.0110.00616.58
7.3.170.0120.00916.54
7.3.160.0090.00816.73
7.3.00.2130.00814.60
7.2.330.0120.00616.82
7.2.320.0130.00416.74
7.2.310.0120.00316.82
7.2.300.0090.00616.81
7.2.290.0060.00916.84
7.2.130.5270.00815.13
7.2.120.4570.01315.13
7.2.110.3490.00514.84
7.2.100.2790.01015.02
7.2.90.3700.00514.94
7.2.80.3490.01314.89
7.2.70.3540.01214.95
7.2.60.4400.00514.76
7.2.50.3390.00714.57
7.2.40.4550.01214.77
7.2.30.2930.00314.96
7.2.20.3820.01314.78
7.2.10.4870.00714.94
7.2.00.4610.01315.01
7.1.250.5470.00813.86
7.0.330.3450.00813.41
5.6.380.0150.00414.14

preferences:
44.41 ms | 403 KiB | 5 Q