3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $content = 'Le Courrier de Sáint-Hyácinthe'; if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } echo mb_convert_case($content, MB_CASE_UPPER, "UTF-8");

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.70.0100.01016.75
8.3.60.0090.00616.50
8.3.50.0200.00922.05
8.3.40.0070.00718.58
8.3.30.0070.00718.92
8.3.20.0050.00320.33
8.3.10.0000.00823.69
8.3.00.0040.00419.56
8.2.180.0110.01116.50
8.2.170.0100.01022.96
8.2.160.0070.00720.35
8.2.150.0110.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.89
8.2.110.0030.00619.37
8.2.100.0060.00617.84
8.2.90.0050.00319.28
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0080.00017.63
8.2.50.0060.00319.29
8.2.40.0080.00019.48
8.2.30.0000.00918.25
8.2.20.0040.00417.68
8.2.10.0000.00818.00
8.2.00.0040.00417.77
8.1.280.0110.00325.92
8.1.270.0040.00423.89
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00019.28
8.1.230.0000.01121.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.36
8.1.180.0000.00918.10
8.1.170.0030.00617.63
8.1.160.0000.00822.08
8.1.150.0040.00418.95
8.1.140.0000.00717.68
8.1.130.0080.00017.90
8.1.120.0080.00017.45
8.1.110.0000.00817.49
8.1.100.0040.00417.45
8.1.90.0000.00717.54
8.1.80.0080.00017.50
8.1.70.0000.00717.52
8.1.60.0060.00317.64
8.1.50.0040.00417.64
8.1.40.0040.00417.55
8.1.30.0060.00317.71
8.1.20.0030.00617.75
8.1.10.0050.00317.48
8.1.00.0050.00217.57
8.0.300.0070.00020.07
8.0.290.0050.00316.75
8.0.280.0030.00318.43
8.0.270.0000.00716.95
8.0.260.0030.00317.25
8.0.250.0040.00417.01
8.0.240.0040.00416.91
8.0.230.0040.00417.09
8.0.220.0030.00316.92
8.0.210.0030.00517.05
8.0.200.0000.00617.00
8.0.190.0080.00016.99
8.0.180.0000.00816.82
8.0.170.0000.00816.88
8.0.160.0000.00716.97
8.0.150.0040.00416.95
8.0.140.0040.00416.92
8.0.130.0000.00513.39
8.0.120.0050.00313.80
8.0.110.0100.00015.17
8.0.100.0040.00615.20
8.0.90.0020.00815.18
8.0.80.0080.00815.17
8.0.70.0040.00615.10
8.0.60.0050.00615.08
8.0.50.0070.00315.21
8.0.30.0110.00615.99
8.0.20.0080.00916.07
8.0.10.0080.00315.14
8.0.00.0050.00816.45
7.4.330.0000.00515.03
7.4.320.0000.00616.57
7.4.300.0030.00316.44
7.4.290.0000.00716.65
7.4.280.0000.00816.67
7.4.270.0040.00416.60
7.4.260.0050.00316.51
7.4.250.0050.00514.99
7.4.240.0030.00615.49
7.4.230.0080.00314.95
7.4.220.0030.01115.01
7.4.210.0110.00315.02
7.4.200.0060.00515.03
7.4.190.0100.00313.41
7.4.180.0130.00013.39
7.4.160.0080.00715.05
7.4.150.0080.00915.33
7.4.140.0110.00616.30
7.4.130.0090.00715.75
7.4.120.0120.00415.79
7.4.110.0120.00415.36
7.4.100.0100.00815.45
7.4.90.0070.00815.49
7.4.80.0100.00616.35
7.4.70.0120.00615.40
7.4.60.0140.00515.39
7.4.50.0060.00715.29
7.4.40.0060.00915.45
7.4.30.0080.00715.40
7.4.20.0120.00314.94
7.4.10.0100.00614.96
7.4.00.0120.00514.87
7.3.330.0020.00213.18
7.3.320.0070.00313.10
7.3.310.0080.00314.81
7.3.300.0110.00014.74
7.3.290.0080.00614.69
7.3.280.0110.00615.50
7.3.270.0080.00915.33
7.3.260.0130.00314.75
7.3.250.0120.00615.59
7.3.240.0140.00415.26
7.3.230.0100.00615.38
7.3.220.0120.00514.83
7.3.210.0080.00815.21
7.3.200.0090.00816.26
7.3.190.0060.01215.20
7.3.180.0120.00415.27
7.3.170.0050.01115.27
7.3.160.0100.00615.25
7.3.150.0070.00714.68
7.3.140.0040.00714.75
7.3.130.0110.00414.63
7.3.120.0050.00914.72
7.3.110.0070.00714.72
7.3.100.0080.00714.81
7.3.90.0050.00814.78
7.3.80.0070.00514.81
7.3.70.0070.00714.73
7.3.60.0070.00714.86
7.3.50.0080.00514.78
7.3.40.0110.00514.71
7.3.30.0090.00514.75
7.3.20.0070.00716.04
7.3.10.0140.00515.70
7.3.00.0180.00615.53
7.2.340.0190.00414.91
7.2.330.0110.00915.36
7.2.320.0140.00615.38
7.2.310.0130.00915.40
7.2.300.0110.00915.32
7.2.290.0110.01015.42
7.2.280.0120.00914.84
7.2.270.0160.00614.90
7.2.260.0130.00714.88
7.2.250.0150.00714.85
7.2.240.0150.00514.72
7.2.230.0160.00414.67
7.2.220.0130.00814.87
7.2.210.0100.01014.77
7.2.200.0140.00614.80
7.2.190.0120.00814.84
7.2.180.0110.00814.79
7.2.170.0110.01014.81
7.2.160.0130.00714.82
7.2.150.0120.00916.13
7.2.140.0140.00916.16
7.2.130.0190.00815.83
7.2.120.0160.00815.88
7.2.110.0200.00715.83
7.2.100.0130.00715.93
7.2.90.0210.00715.84
7.2.80.0150.00615.89
7.2.70.0190.00815.90
7.2.60.0150.00616.00
7.2.50.0140.00515.88
7.2.40.0210.00315.91
7.2.30.0190.00415.90
7.2.20.0180.00815.74
7.2.10.0350.00015.86
7.2.00.0180.00616.50
7.1.330.0140.00515.10
7.1.320.0140.00715.21
7.1.310.0160.00615.16
7.1.300.0120.00715.01
7.1.290.0100.00814.99
7.1.280.0110.00815.14
7.1.270.0160.00415.12
7.1.260.0250.00515.18
7.1.250.0220.00214.72
7.1.240.0190.00614.76
7.1.230.0290.00314.75
7.1.220.0150.00414.80
7.1.210.0160.00514.85
7.1.200.0130.00615.10
7.1.190.0190.00714.90
7.1.180.0210.00714.78
7.1.170.0150.00814.76
7.1.160.0180.00614.74
7.1.150.0210.00414.80
7.1.140.0120.01014.70
7.1.130.0180.00514.81
7.1.120.0140.00914.86
7.1.110.0120.00814.94
7.1.100.0180.00415.52
7.1.90.0220.00614.85
7.1.80.0150.00714.79
7.1.70.0170.00315.24
7.1.60.0160.00515.87
7.1.50.0190.00515.26
7.1.40.0140.00914.83
7.1.30.0150.00714.77
7.1.20.0190.00814.73
7.1.10.0150.00414.89
7.1.00.0190.01716.41
7.0.330.0230.00314.13
7.0.320.0190.00714.12
7.0.310.0240.00714.27
7.0.300.0190.00814.38
7.0.290.0230.00814.19
7.0.280.0240.00814.34
7.0.270.0150.00714.17
7.0.260.0180.00614.27
7.0.250.0210.00614.29
7.0.240.0280.00714.26
7.0.230.0160.00314.31
7.0.220.0230.01014.25
7.0.210.0180.01214.31
7.0.200.0190.00914.86
7.0.190.0280.00614.22
7.0.180.0210.00614.15
7.0.170.0180.00514.35
7.0.160.0240.00714.29
7.0.150.0230.00714.22
7.0.140.0180.02316.08
7.0.130.0290.00014.25
7.0.120.0240.00714.25
7.0.110.0100.01316.01
7.0.100.0150.01416.07
7.0.90.0180.02416.04
7.0.80.0180.01915.98
7.0.70.0110.02016.04
7.0.60.0220.02216.07
7.0.50.0130.02416.12
7.0.40.0090.01815.53
7.0.30.0080.02615.44
7.0.20.0190.01715.45
7.0.10.0160.02015.63
7.0.00.0130.01815.55
5.6.400.0140.00714.21
5.6.390.0130.01014.19
5.6.380.0160.00614.38
5.6.370.0120.01014.28
5.6.360.0140.01014.29
5.6.350.0130.00714.14
5.6.340.0120.00914.30
5.6.330.0090.01214.11
5.6.320.0130.00714.35
5.6.310.0160.00614.40
5.6.300.0100.00714.37
5.6.290.0160.00414.29
5.6.280.0060.02515.81
5.6.270.0130.00714.13
5.6.260.0110.01215.87
5.6.250.0110.01515.74
5.6.240.0130.01815.90
5.6.230.0080.02315.86
5.6.220.0080.02115.84
5.6.210.0140.02015.84
5.6.200.0150.02315.92
5.6.190.0080.02315.78
5.6.180.0090.02215.94
5.6.170.0090.02915.81
5.6.160.0100.02715.94
5.6.150.0120.01815.82
5.6.140.0100.01815.83
5.6.130.0120.02215.72
5.6.120.0120.01515.84
5.6.110.0100.01615.76
5.6.100.0110.02515.84
5.6.90.0070.02515.76
5.6.80.0100.02315.62
5.6.70.0060.02715.51
5.6.60.0100.01415.55
5.6.50.0090.02715.48
5.6.40.0090.02315.59
5.6.30.0080.02015.59
5.6.20.0090.01715.53
5.6.10.0080.02415.56
5.6.00.0070.02815.58
5.5.380.0090.02414.90
5.5.370.0130.01314.92
5.5.360.0070.02814.93
5.5.350.0100.02614.98
5.5.340.0080.01615.01
5.5.330.0100.01915.03
5.5.320.0090.02614.97
5.5.310.0080.02215.02
5.5.300.0060.02415.03
5.5.290.0090.02314.91
5.5.280.0140.01714.94
5.5.270.0090.01914.98
5.5.260.0090.02614.92
5.5.250.0070.02814.98
5.5.240.0070.02714.97
5.5.230.0110.02414.72
5.5.220.0060.02714.83
5.5.210.0090.02414.84
5.5.200.0100.02014.73
5.5.190.0040.02814.61
5.5.180.0080.02714.65
5.5.170.0100.00913.08
5.5.160.0090.02314.69
5.5.150.0100.02214.72
5.5.140.0090.01814.61
5.5.130.0090.01914.87
5.5.120.0100.02114.77
5.5.110.0100.02314.71
5.5.100.0090.02414.76
5.5.90.0100.01914.84
5.5.80.0080.02414.86
5.5.70.0090.01514.71
5.5.60.0100.02314.73
5.5.50.0100.01514.73
5.5.40.0100.02514.80
5.5.30.0120.01914.74
5.5.20.0120.02114.83
5.5.10.0110.01614.78
5.5.00.0080.02114.62
5.4.450.0090.02513.88
5.4.440.0070.02613.81
5.4.430.0080.02513.81
5.4.420.0070.01413.80
5.4.410.0110.02213.73
5.4.400.0090.02313.70
5.4.390.0090.02113.71
5.4.380.0100.01813.78
5.4.370.0080.02013.76
5.4.360.0100.01213.73
5.4.350.0120.02013.73
5.4.340.0070.02513.78
5.4.330.0080.00711.99
5.4.320.0100.02213.75
5.4.310.0070.02313.84
5.4.300.0080.02413.65
5.4.290.0060.02313.82
5.4.280.0070.02413.86
5.4.270.0070.01913.82
5.4.260.0100.02113.70
5.4.250.0100.02213.73
5.4.240.0070.02013.74
5.4.230.0100.01413.66
5.4.220.0110.02113.63
5.4.210.0090.02313.60
5.4.200.0100.02213.57
5.4.190.0090.01613.73
5.4.180.0100.02113.62
5.4.170.0080.02313.60
5.4.160.0090.01713.87
5.4.150.0070.02013.71
5.4.140.0070.02212.97
5.4.130.0060.01913.04
5.4.120.0100.02213.07
5.4.110.0100.02013.03
5.4.100.0070.02213.16
5.4.90.0120.02113.08
5.4.80.0100.02113.02
5.4.70.0100.02013.00
5.4.60.0080.02213.15
5.4.50.0080.01413.12
5.4.40.0130.01913.08
5.4.30.0090.02113.15
5.4.20.0080.02213.21
5.4.10.0110.02013.14
5.4.00.0100.01912.82
5.3.290.0100.02112.85
5.3.280.0090.02012.76
5.3.270.0080.02412.75
5.3.260.0100.01312.75
5.3.250.0070.02312.75
5.3.240.0090.02312.69
5.3.230.0080.01712.71
5.3.220.0060.02412.68
5.3.210.0070.01612.64
5.3.200.0080.02512.64
5.3.190.0100.02112.71
5.3.180.0080.01812.71
5.3.170.0060.02312.70
5.3.160.0110.01512.72
5.3.150.0090.02112.88
5.3.140.0100.02012.67
5.3.130.0120.01912.76
5.3.120.0070.02512.66
5.3.110.0110.02212.75
5.3.100.0050.02112.54
5.3.90.0080.02112.58
5.3.80.0070.01912.52
5.3.70.0070.02112.49
5.3.60.0110.02212.74
5.3.50.0070.02212.48
5.3.40.0080.02112.50
5.3.30.0060.02312.51
5.3.20.0090.01812.49
5.3.10.0090.01912.38
5.3.00.0090.02012.29

preferences:
39.18 ms | 401 KiB | 5 Q