3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = "codiad öäü test"; if(!mb_check_encoding($output, 'UTF-8')) { if(mb_check_encoding($output, 'ISO-8859-1')) { $output = utf8_encode($output); } else { $output = mb_convert_encoding($content, 'UTF-8'); } } var_dump($output);

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.13
8.3.50.0120.00817.29
8.3.40.0110.01118.56
8.3.30.0120.00318.54
8.3.20.0040.00418.63
8.3.10.0080.00020.39
8.3.00.0150.00019.13
8.2.180.0100.01016.32
8.2.170.0170.00318.83
8.2.160.0030.01022.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0130.00321.00
8.2.110.0000.00821.06
8.2.100.0040.00817.78
8.2.90.0000.00819.27
8.2.80.0040.00417.93
8.2.70.0050.00317.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0000.00918.16
8.2.20.0040.00417.53
8.2.10.0040.00417.68
8.2.00.0060.00317.55
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00020.89
8.1.230.0110.00020.73
8.1.220.0060.00317.76
8.1.210.0100.00318.97
8.1.200.0060.00317.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0000.00718.95
8.1.150.0000.00718.61
8.1.140.0080.00017.38
8.1.130.0000.00717.73
8.1.120.0000.00717.39
8.1.110.0000.00817.52
8.1.100.0000.00717.36
8.1.90.0000.00717.53
8.1.80.0030.00417.50
8.1.70.0000.00717.51
8.1.60.0050.00317.64
8.1.50.0000.00917.57
8.1.40.0000.00817.46
8.1.30.0000.00817.53
8.1.20.0040.00417.58
8.1.10.0090.00017.39
8.1.00.0040.00417.42
8.0.300.0030.00520.10
8.0.290.0070.00016.63
8.0.280.0030.00318.55
8.0.270.0030.00317.19
8.0.260.0040.00418.54
8.0.250.0040.00416.99
8.0.240.0030.00717.01
8.0.230.0060.00316.99
8.0.220.0070.00016.97
8.0.210.0070.00017.01
8.0.200.0030.00317.00
8.0.190.0000.00817.03
8.0.180.0000.00816.88
8.0.170.0030.00516.96
8.0.160.0030.00316.79
8.0.150.0080.00016.86
8.0.140.0040.00416.95
8.0.130.0030.00313.46
8.0.120.0070.00016.94
8.0.110.0000.00717.01
8.0.100.0080.00016.83
8.0.90.0000.00716.93
8.0.80.0080.00816.89
8.0.70.0030.00316.80
8.0.60.0060.00316.91
8.0.50.0040.00416.93
8.0.30.0110.01017.11
8.0.20.0080.01017.40
8.0.10.0050.00217.03
8.0.00.0070.01116.78
7.4.330.0000.00413.43
7.4.320.0000.00716.62
7.4.300.0000.00616.61
7.4.290.0040.00416.58
7.4.280.0070.00016.48
7.4.270.0000.00716.65
7.4.260.0000.00513.23
7.4.250.0040.00416.47
7.4.240.0000.00816.42
7.4.230.0030.00316.74
7.4.220.0140.00416.64
7.4.210.0060.00916.48
7.4.200.0030.00316.50
7.4.190.0000.00716.59
7.4.160.0030.01216.48
7.4.150.0140.00317.40
7.4.140.0130.00717.23
7.4.130.0090.00916.48
7.4.120.0110.00716.39
7.4.110.0070.01016.56
7.4.100.0100.00716.39
7.4.90.0070.01016.47
7.4.80.0100.00719.03
7.4.70.0070.01316.50
7.4.60.0130.00316.38
7.4.50.0020.00216.48
7.4.40.0070.01022.27
7.4.30.0090.00616.50
7.4.00.0100.00714.88
7.3.330.0000.00613.07
7.3.320.0020.00413.04
7.3.310.0070.00016.16
7.3.300.0080.00016.19
7.3.290.0080.00616.21
7.3.280.0080.00916.20
7.3.270.0090.00617.40
7.3.260.0090.01118.24
7.3.250.0080.01316.33
7.3.240.0120.00416.47
7.3.230.0070.01716.39
7.3.210.0030.01316.23
7.3.200.0110.00719.39
7.3.190.0100.01116.14
7.3.180.0070.01516.45
7.3.170.0110.00516.27
7.3.160.0040.01116.36
7.3.120.0100.00714.70
7.3.10.0120.00316.48
7.3.00.0120.00316.40
7.2.330.0000.01816.33
7.2.320.0070.01016.19
7.2.310.0140.00716.57
7.2.300.0110.00716.46
7.2.290.0080.00816.25
7.2.130.0000.01816.84
7.2.120.0120.00316.63
7.2.110.0040.01016.43
7.2.100.0040.00716.73
7.2.90.0000.01616.95
7.2.80.0090.00616.95
7.2.70.0030.00616.72
7.2.60.0030.01216.90
7.2.50.0060.00916.36
7.2.40.0030.01316.90
7.2.30.0030.01016.92
7.2.20.0000.01516.74
7.2.10.0040.00816.70
7.2.00.0040.01117.93
7.1.250.0070.00415.69
7.1.200.0040.00715.52
7.1.100.0080.00617.88
7.1.70.0000.01016.96
7.1.60.0060.01819.40
7.1.50.0110.00716.86
7.1.00.0000.07022.46
7.0.200.0000.00816.91
7.0.140.0000.07722.15
7.0.60.0070.08321.73
7.0.50.0030.04017.82
7.0.40.0030.04320.09
7.0.30.0170.05020.01
7.0.20.0270.07720.12
7.0.10.0000.08019.97
7.0.00.0070.09020.01
5.6.280.0070.07021.07
5.6.210.0070.07020.50
5.6.200.0170.06018.22
5.6.190.0130.07720.36
5.6.180.0170.09320.36
5.6.170.0330.07020.54
5.6.160.0070.05320.38
5.6.150.0130.07018.17
5.6.140.0030.08718.20
5.6.130.0000.07018.21
5.6.120.0000.09020.96
5.6.110.0070.06721.04
5.6.100.0030.04721.00
5.6.90.0130.05720.98
5.6.80.0130.07020.39
5.5.350.0070.07720.46
5.5.340.0030.08317.96
5.5.330.0100.05320.47
5.5.320.0230.05720.30
5.5.310.0270.05320.31
5.5.300.0170.07018.02
5.5.290.0070.07317.95
5.5.280.0070.06720.90
5.5.270.0070.06320.67
5.5.260.0100.07020.83
5.5.250.0000.08720.43
5.5.240.0100.06020.26
5.4.450.0030.08319.24
5.4.440.0030.08319.47
5.4.430.0030.05019.46
5.4.420.0100.04319.49
5.4.410.0070.04719.11
5.4.400.0070.04318.79
5.4.390.0030.08019.08
5.4.380.0100.07019.17
5.4.370.0070.07319.09
5.4.360.0070.06018.80
5.4.350.0000.04018.94
5.4.340.0030.05319.07
5.4.320.0070.05319.00
5.4.310.0100.06319.08
5.4.300.0070.04719.14
5.4.290.0130.07319.17
5.4.280.0070.06318.78
5.4.270.0070.03719.17
5.4.260.0030.04718.79
5.4.250.0070.04318.78
5.4.240.0100.05018.80
5.4.230.0130.07018.78
5.4.220.0130.05019.07
5.4.210.0030.05019.14
5.4.200.0000.07719.15
5.4.190.0000.05319.16
5.4.180.0070.04319.18
5.4.170.0070.07718.79
5.4.160.0100.07319.06
5.4.150.0000.04719.06
5.4.140.0070.04316.25
5.4.130.0070.06016.25
5.4.120.0100.07316.21
5.4.110.0100.06316.26
5.4.100.0070.07716.23
5.4.90.0100.05316.29
5.4.80.0100.06716.39
5.4.70.0070.05316.25
5.4.60.0170.03716.12
5.4.50.0030.05016.27
5.4.40.0030.03716.38
5.4.30.0100.06716.26
5.4.20.0070.04016.30
5.4.10.0100.04316.33
5.4.00.0000.06715.73
5.3.290.0070.07714.64
5.3.280.0030.04714.61
5.3.270.0000.05014.49
5.3.260.0100.07314.54
5.3.250.0030.05014.42
5.3.240.0070.07314.53
5.3.230.0100.06014.51
5.3.220.0030.07314.52
5.3.210.0030.07014.52
5.3.200.0070.07314.65
5.3.190.0000.05014.46
5.3.180.0070.07014.58
5.3.170.0130.06714.38
5.3.160.0130.06714.50
5.3.150.0130.06714.38
5.3.140.0070.04014.49
5.3.130.0130.05314.48
5.3.120.0000.05714.52
5.3.110.0100.05014.64
5.3.100.0170.06313.91
5.3.90.0070.04013.91
5.3.80.0030.04313.95
5.3.70.0130.03714.10
5.3.60.0030.06713.82
5.3.50.0070.03713.89
5.3.40.0000.04713.76
5.3.30.0030.03713.86
5.3.20.0070.05013.70
5.3.10.0000.05713.57
5.3.00.0030.07313.56
5.2.170.0030.03311.09
5.2.160.0000.03711.16
5.2.150.0070.05311.15
5.2.140.0030.05711.07
5.2.130.0070.04711.09
5.2.120.0070.05010.93
5.2.110.0030.05311.09
5.2.100.0070.02711.07
5.2.90.0000.03311.07
5.2.80.0070.06011.08
5.2.70.0000.05310.97
5.2.60.0000.06710.86
5.2.50.0030.04711.18
5.2.40.0070.04310.96
5.2.30.0070.04710.91
5.2.20.0000.04010.94
5.2.10.0000.04010.81
5.2.00.0000.05710.70
5.1.60.0000.04010.00
5.1.50.0030.03010.09
5.1.40.0000.0479.88
5.1.30.0000.04010.34
5.1.20.0000.03010.25
5.1.10.0000.03010.08
5.1.00.0030.05310.03
5.0.50.0070.0438.80
5.0.40.0000.0478.80
5.0.30.0070.0638.80
5.0.20.0100.0378.80
5.0.10.0070.0338.80
5.0.00.0070.0608.80
4.4.90.0030.0238.80
4.4.80.0000.0378.80
4.4.70.0070.0278.80
4.4.60.0030.0278.80
4.4.50.0000.0238.80
4.4.40.0000.0278.80
4.4.30.0000.0378.80
4.4.20.0000.0178.80
4.4.10.0000.0308.80
4.4.00.0070.0508.80
4.3.110.0030.0278.80
4.3.100.0030.0238.80
4.3.90.0000.0238.80
4.3.80.0030.0538.80
4.3.70.0030.0308.80
4.3.60.0030.0278.80
4.3.50.0100.0278.80
4.3.40.0030.0438.80
4.3.30.0000.0278.80
4.3.20.0070.0338.80
4.3.10.0000.0178.80
4.3.00.0000.0378.80

preferences:
70.06 ms | 400 KiB | 5 Q