3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(dechex(128)); $wrongUtf8 = mb_convert_encoding('öäü', 'UTF-8', 'ISO-8859-1'); var_dump($wrongUtf8); $validUtf8 = mb_convert_encoding($wrongUtf8, 'ISO-8859-1', 'UTF-8'); var_dump($validUtf8);

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.00316.63
8.3.50.0150.00721.99
8.3.40.0070.00718.41
8.3.30.0040.01118.92
8.3.20.0070.00020.30
8.3.10.0040.00421.82
8.3.00.0050.00319.25
8.2.180.0070.01118.41
8.2.170.0140.00322.96
8.2.160.0150.00020.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.48
8.2.110.0050.00521.31
8.2.100.0070.00417.75
8.2.90.0000.00719.35
8.2.80.0040.00417.97
8.2.70.0020.00717.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0060.00320.07
8.2.30.0070.00018.18
8.2.20.0020.00517.68
8.2.10.0000.00818.09
8.2.00.0040.00417.77
8.1.280.0150.00625.92
8.1.270.0060.00318.84
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.79
8.1.230.0060.00617.48
8.1.220.0070.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0060.00320.55
8.1.160.0050.00222.11
8.1.150.0070.00019.00
8.1.140.0070.00017.56
8.1.130.0000.00917.98
8.1.120.0000.00817.62
8.1.110.0000.00717.56
8.1.100.0040.00317.44
8.1.90.0040.00417.40
8.1.80.0030.00317.51
8.1.70.0000.00717.52
8.1.60.0060.00317.71
8.1.50.0000.00817.68
8.1.40.0040.00417.64
8.1.30.0000.00817.74
8.1.20.0030.00517.76
8.1.10.0000.00717.63
8.1.00.0060.00317.64
8.0.300.0070.00018.77
8.0.290.0020.00516.75
8.0.280.0040.00418.41
8.0.270.0040.00417.30
8.0.260.0060.00017.22
8.0.250.0070.00016.91
8.0.240.0070.00017.03
8.0.230.0040.00417.03
8.0.220.0000.00716.88
8.0.210.0000.00616.92
8.0.200.0000.00716.91
8.0.190.0080.00316.91
8.0.180.0000.00716.93
8.0.170.0040.00416.87
8.0.160.0000.00716.87
8.0.150.0030.00316.88
8.0.140.0040.00416.80
8.0.130.0030.00313.37
8.0.120.0040.00416.93
8.0.110.0040.00416.84
8.0.100.0050.00316.81
8.0.90.0030.00416.90
8.0.80.0140.00717.00
8.0.70.0000.00716.89
8.0.60.0040.00416.83
8.0.50.0000.00716.88
8.0.30.0130.01116.96
8.0.20.0130.01017.40
8.0.10.0000.00716.88
8.0.00.0100.01116.74
7.4.330.0070.00015.03
7.4.320.0030.00316.49
7.4.300.0060.00016.70
7.4.290.0030.00316.57
7.4.280.0070.00316.55
7.4.270.0000.00616.66
7.4.260.0000.00716.48
7.4.250.0000.00816.47
7.4.240.0040.00416.63
7.4.230.0000.00716.46
7.4.220.0120.00616.62
7.4.210.0000.01616.72
7.4.200.0070.00016.64
7.4.160.0030.01416.35
7.4.150.0140.00317.40
7.4.140.0080.01117.86
7.4.130.0160.00716.59
7.4.120.0130.00516.51
7.4.110.0060.01016.68
7.4.100.0110.00616.56
7.4.90.0130.00316.54
7.4.80.0110.00719.39
7.4.70.0040.01416.53
7.4.60.0030.01316.31
7.4.50.0040.00416.42
7.4.40.0150.01116.59
7.4.30.0060.01016.47
7.4.00.0070.01015.00
7.3.330.0070.00013.11
7.3.320.0100.00513.10
7.3.310.0030.00316.22
7.3.300.0000.00716.16
7.3.290.0080.00716.26
7.3.280.0080.00916.25
7.3.270.0090.01217.40
7.3.260.0100.01316.36
7.3.250.0150.00616.30
7.3.240.0090.00916.14
7.3.230.0060.01816.39
7.3.210.0130.00316.32
7.3.200.0030.01319.39
7.3.190.0100.00716.46
7.3.180.0060.01016.55
7.3.170.0060.01116.42
7.3.160.0120.00616.64
7.3.10.0130.01015.74
7.3.00.0150.00916.04
7.2.330.0120.01216.64
7.2.320.0030.01416.60
7.2.310.0140.00316.33
7.2.300.0070.01016.34
7.2.290.0120.00616.73
7.2.130.0150.00616.13
7.2.120.0150.00616.41
7.2.110.0170.00316.23
7.2.100.0150.00916.68
7.2.90.0200.00615.88
7.2.80.0120.00916.45
7.2.70.0230.00315.90
7.2.60.0050.01316.60
7.2.50.0120.00916.39
7.2.40.0070.01316.38
7.2.30.0100.01016.32
7.2.20.0140.00616.50
7.2.10.0160.00816.08
7.2.00.0120.00816.79
7.1.250.0200.00415.45
7.1.200.0060.00616.04
7.1.70.0040.01117.16
7.1.60.0100.01319.50
7.1.50.0090.01317.02
7.1.00.0030.07722.36
7.0.200.0240.01114.39
7.0.140.0000.06722.09
7.0.60.0070.05719.99
7.0.50.0000.06717.86
7.0.40.0030.04720.39
7.0.30.0270.08020.00
7.0.20.0400.06020.16
7.0.10.0270.05720.18
7.0.00.0070.08720.17
5.6.280.0000.07321.11
5.6.210.0030.07720.45
5.6.200.0000.08718.19
5.6.190.0070.08320.60
5.6.180.0270.03720.58
5.6.170.0330.06020.71
5.6.160.0130.07320.48
5.6.150.0130.07318.14
5.6.140.0200.06718.18
5.6.130.0070.03718.21
5.6.120.0070.08021.07
5.6.110.0030.08020.98
5.6.100.0100.06721.00
5.6.90.0070.04721.00
5.6.80.0100.08020.34
5.6.70.0230.06320.51
5.5.350.0230.06320.36
5.5.340.0030.04017.98
5.5.330.0100.04320.36
5.5.320.0000.04320.20
5.5.310.0330.08020.28
5.5.300.0070.08317.96
5.5.290.0070.09018.01
5.5.280.0100.07020.84
5.5.270.0100.08020.76
5.5.260.0030.08320.95
5.5.250.0100.05720.60
5.5.240.0070.07320.34
5.4.450.0200.05319.52
5.4.440.0670.06319.40
5.4.430.1130.05319.59
5.4.420.0830.06019.51
5.4.410.0200.05018.82
5.4.400.0500.07318.54
5.4.390.0600.06718.53
5.4.380.0400.06318.47
5.4.370.0430.08318.52
5.4.360.0400.04718.57
5.4.350.0400.05718.72
5.4.340.0400.05018.52
5.4.320.0430.04718.48
5.4.310.0400.06318.34
5.4.300.0530.05018.68
5.4.290.0500.06018.67
5.4.280.0330.05718.73
5.4.270.0500.06318.70
5.4.260.0370.07718.71
5.4.250.0370.07718.69
5.4.240.0470.05318.69
5.4.230.0400.07718.48
5.4.220.0200.06718.64
5.4.210.0400.06018.74
5.4.200.0500.05016.53
5.4.190.0430.05718.66
5.4.180.0500.05018.67
5.4.170.0370.05718.70
5.4.160.0430.08018.60
5.4.150.0630.05718.70
5.4.140.0630.06716.23
5.4.130.0400.05716.26
5.4.120.0470.05716.19
5.4.110.0430.04716.16
5.4.100.0270.06016.19
5.4.90.0400.05316.12
5.4.80.0370.04316.14
5.4.70.0370.07316.05
5.4.60.0270.05716.09
5.4.50.0330.06016.03
5.4.40.0300.06016.13
5.4.30.0370.05316.16
5.4.20.0430.05316.24
5.4.10.0300.05016.27
5.4.00.0330.05715.46
5.3.290.0330.06014.73
5.3.280.0370.06014.58
5.3.270.0370.07014.70
5.3.260.0500.05014.49
5.3.250.0300.07314.55
5.3.240.0400.06014.57
5.3.230.0400.07714.52
5.3.220.0470.06314.65
5.3.210.0430.04314.54
5.3.200.0300.06014.51
5.3.190.0330.05714.54
5.3.180.0370.05014.51
5.3.170.0230.05714.61
5.3.160.0400.04314.52
5.3.150.0600.05714.52
5.3.140.0500.06314.54
5.3.130.0330.06014.64
5.3.120.0400.06014.46
5.3.110.0330.08314.64
5.3.100.0430.07013.98
5.3.90.0500.07314.00
5.3.80.0470.07314.11
5.3.70.0400.05713.91
5.3.60.0230.06713.92
5.3.50.0430.05713.86
5.3.40.0430.04713.93
5.3.30.0270.07013.82
5.3.20.0400.05713.68
5.3.10.0400.04713.73
5.3.00.0330.06313.62
5.2.170.0270.04311.15
5.2.160.0330.05011.18
5.2.150.0330.04311.07
5.2.140.0330.05011.19
5.2.130.0270.03711.13
5.2.120.0370.04711.16
5.2.110.0330.03711.24
5.2.100.0370.04711.14
5.2.90.0270.04011.16
5.2.80.0330.05311.06
5.2.70.0330.04311.07
5.2.60.0300.05311.20
5.2.50.0400.05710.98
5.2.40.0200.04710.91
5.2.30.0330.03310.88
5.2.20.0170.04311.09
5.2.10.0130.04710.89
5.2.00.0300.05010.77
5.1.60.0370.04310.05
5.1.50.0270.04010.05
5.1.40.0070.0339.99
5.1.30.0130.03310.31
5.1.20.0130.04710.46
5.1.10.0300.05010.20
5.1.00.0400.04010.04
5.0.50.0070.0378.56
5.0.40.0270.0138.43
5.0.30.0230.0438.23
5.0.20.0130.0278.26
5.0.10.0200.0278.35
5.0.00.0100.0478.27
4.4.90.0130.0235.87
4.4.80.0230.0235.84
4.4.70.0270.0205.91
4.4.60.0070.0275.87
4.4.50.0300.0235.89
4.4.40.0130.0375.88
4.4.30.0130.0235.87
4.4.20.0170.0235.87
4.4.10.0100.0305.93
4.4.00.0170.0335.92
4.3.110.0170.0235.88
4.3.100.0230.0205.80
4.3.90.0070.0275.76
4.3.80.0100.0405.89
4.3.70.0100.0205.77
4.3.60.0130.0235.87
4.3.50.0100.0335.79
4.3.40.0170.0405.77
4.3.30.0100.0274.59
4.3.20.0070.0234.56
4.3.10.0030.0234.57
4.3.00.0030.0206.80

preferences:
33.08 ms | 401 KiB | 5 Q