3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(PHP_INT_MAX); ini_set("mbstring.substitute_character", (string) ord("X")); ini_set("mbstring.strict_detection", "1"); // no effect // bytes 0x80-0xff are not valid ASCII: echo 1, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "ASCII")) . "\n"; // bytes 0x80-0x9f are not valid ISO-8859-1: echo 2, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "ISO-8859-1")) . "\n"; echo 3, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "UTF-8")) . "\n";

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.4.120.0150.00523.89
8.4.110.0130.00718.63
8.4.100.0060.00417.71
8.4.90.0130.00817.57
8.4.80.0060.00319.70
8.4.70.0040.00417.89
8.4.60.0140.00620.13
8.4.50.0110.00921.43
8.4.40.0080.00019.19
8.4.30.0070.01320.42
8.4.20.0100.01020.64
8.4.10.0090.00017.75
8.3.250.0080.00118.38
8.3.240.0050.00516.98
8.3.230.0130.00716.64
8.3.220.0070.00118.35
8.3.210.0060.00218.57
8.3.200.0060.00316.67
8.3.190.0140.00517.43
8.3.180.0160.00217.05
8.3.170.0070.01116.81
8.3.160.0120.00617.27
8.3.150.0080.00018.82
8.3.140.0080.00017.08
8.3.130.0040.00418.40
8.3.120.0100.00720.70
8.3.110.0080.00020.94
8.3.100.0030.00716.50
8.3.90.0120.00618.56
8.3.80.0060.00316.50
8.3.70.0090.00616.63
8.3.60.0190.00016.50
8.3.50.0160.00320.02
8.3.40.0100.00618.55
8.3.30.0130.00718.44
8.3.20.0050.00324.18
8.3.10.0030.00624.66
8.3.00.0000.00826.16
8.2.290.0120.00819.01
8.2.280.0090.01118.46
8.2.270.0000.01916.91
8.2.260.0040.00417.04
8.2.250.0100.01018.61
8.2.240.0150.00417.34
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0040.00926.77
8.2.200.0040.00416.63
8.2.190.0140.00016.58
8.2.180.0000.01825.92
8.2.170.0100.01019.21
8.2.160.0060.00922.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.30
8.2.110.0060.00322.59
8.2.100.0040.00717.84
8.2.90.0040.00417.88
8.2.80.0030.00519.09
8.2.70.0060.00317.93
8.2.60.0000.00817.63
8.2.50.0040.00417.63
8.2.40.0040.00418.34
8.2.30.0070.00318.05
8.2.20.0000.00718.25
8.2.10.0050.00220.72
8.2.00.0000.00819.29
8.1.330.0090.00821.84
8.1.320.0130.00616.36
8.1.310.0030.01416.73
8.1.300.0080.00317.96
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00324.09
8.1.230.0070.00421.10
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0050.00317.60
8.1.190.0080.00019.26
8.1.180.0000.01018.10
8.1.170.0090.00018.71
8.1.160.0000.01018.92
8.1.150.0000.00718.86
8.1.140.0050.00219.00
8.1.130.0040.00420.44
8.1.120.0000.00717.55
8.1.110.0060.00317.61
8.1.100.0030.00717.46
8.1.90.0040.00417.57
8.1.80.0000.00717.52
8.1.70.0030.00317.46
8.1.60.0030.00617.65
8.1.50.0060.00317.67
8.1.40.0080.00317.49
8.1.30.0080.00017.74
8.1.20.0000.00917.75
8.1.10.0050.00517.64
8.1.00.0050.00517.51
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0070.00018.55
8.0.270.0030.00318.18
8.0.260.0000.00618.55
8.0.250.0000.00717.11
8.0.240.0030.00317.04
8.0.230.0050.00216.95
8.0.220.0040.00416.98
8.0.210.0030.00316.89
8.0.200.0050.00317.02
8.0.190.0030.00316.94
8.0.180.0060.00317.07
8.0.170.0050.00317.04
8.0.160.0000.01016.95
8.0.150.0050.00217.03
8.0.140.0080.00416.84
8.0.130.0050.00013.42
8.0.120.0030.00517.00
8.0.110.0030.00516.96
8.0.100.0040.00416.95
8.0.90.0080.00016.85
8.0.80.0070.00016.89
8.0.70.0070.00017.06
8.0.60.0000.00716.76
8.0.50.0040.00416.82
8.0.30.0040.00417.00
8.0.20.0000.00816.87
8.0.10.0000.00817.07
8.0.00.0000.00816.91
7.4.330.0040.00015.55
7.4.320.0040.00416.51
7.4.300.0070.00016.44
7.4.290.0080.00016.43
7.4.280.0080.00016.50
7.4.270.0030.00316.40
7.4.260.0000.00513.30
7.4.250.0000.00716.45
7.4.240.0070.00016.58
7.4.230.0070.00016.34
7.4.220.0040.00416.39
7.4.210.0070.00016.45
7.4.200.0050.00316.46
7.4.190.0020.00516.65
7.4.180.0070.00016.63
7.4.160.0070.00016.64
7.4.150.0000.00716.61
7.4.140.0060.00216.36
7.4.130.0000.00816.34
7.4.120.0030.00516.36
7.4.110.0080.00016.55
7.4.100.0040.00416.45
7.4.90.0090.00016.31
7.4.80.0060.00316.49
7.4.70.0060.00316.43
7.4.60.0080.00016.69
7.4.50.0000.00916.43
7.4.40.0000.00816.18
7.4.30.0000.00816.61
7.4.20.0000.00916.35
7.4.10.0080.00016.53
7.4.00.0060.00316.30
7.3.330.0060.00316.43
7.3.320.0050.00013.27
7.3.310.0030.00316.22
7.3.300.0070.00016.39
7.3.290.0070.00016.39
7.3.280.0070.00016.33
7.3.270.0030.00316.37
7.3.260.0030.00316.28
7.3.250.0070.00016.39
7.3.240.0000.00716.33
7.3.230.0030.00316.42
7.3.220.0000.00716.21
7.3.210.0040.00416.34
7.3.200.0080.00016.25
7.3.190.0070.00016.34
7.3.180.0070.00016.22
7.3.170.0070.00016.30
7.3.160.0070.00016.22
7.3.150.0000.00716.33
7.3.140.0020.00516.15
7.3.130.0000.00816.30
7.3.120.0000.00716.31
7.3.110.0000.00716.34
7.3.100.0070.00016.16
7.3.90.0080.00016.59
7.3.80.0000.00716.34
7.3.70.0000.00616.20
7.3.60.0000.00616.45
7.3.50.0070.00016.38
7.3.40.0030.00316.43
7.3.30.0000.00616.48
7.3.20.0030.00316.43
7.3.10.0000.00716.36
7.3.00.0040.00416.29

preferences:
29.12 ms | 403 KiB | 5 Q