3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domains = [ 'danielabruña.com', 'xn--fagualpez-b7a.com', 'laconspiracióndelcastellano.com', ]; foreach ($domains as $domain) { $needs_encoding = mb_detect_encoding($domain, ['ASCII', 'UTF-8'], true) === 'UTF-8'; var_dump($domain, $needs_encoding); }

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.0100.00920.55
8.4.110.0120.00722.33
8.4.100.0140.00817.65
8.4.90.0110.00718.65
8.4.80.0070.00219.46
8.4.70.0110.00918.05
8.4.60.0140.00718.43
8.4.50.0050.00319.27
8.4.40.0100.01019.19
8.4.30.0180.00620.52
8.4.20.0160.00320.44
8.4.10.0060.00322.13
8.3.250.0120.00718.73
8.3.240.0130.00416.52
8.3.230.0120.00416.56
8.3.220.0030.00517.29
8.3.210.0090.00816.64
8.3.200.0100.01016.72
8.3.190.0040.00418.97
8.3.180.0070.00316.70
8.3.170.0120.00620.46
8.3.160.0150.00018.40
8.3.150.0150.00418.92
8.3.140.0050.00316.73
8.3.130.0040.00416.70
8.3.120.0030.00618.95
8.3.110.0030.00620.94
8.3.100.0030.00616.73
8.3.90.0000.00826.77
8.3.80.0030.00616.63
8.3.70.0180.00416.58
8.3.60.0160.00016.63
8.3.50.0100.01019.96
8.3.40.0030.01620.12
8.3.30.0100.01018.42
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0060.00422.40
8.2.280.0090.00420.43
8.2.270.0130.00617.36
8.2.260.0120.00618.30
8.2.250.0040.00416.48
8.2.240.0110.00418.65
8.2.230.0060.00322.58
8.2.220.0000.00824.06
8.2.210.0050.00226.77
8.2.200.0120.00016.63
8.2.190.0150.00016.75
8.2.180.0110.00725.92
8.2.170.0040.01219.07
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.00920.56
8.2.100.0030.00718.16
8.2.90.0040.00419.34
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.19
8.2.30.0040.00418.13
8.2.20.0000.00820.57
8.2.10.0000.00818.14
8.2.00.0070.00019.37
8.1.330.0120.00721.75
8.1.320.0130.00616.12
8.1.310.0100.00718.39
8.1.300.0070.01116.04
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00623.77
8.1.230.0080.00319.22
8.1.220.0050.00217.79
8.1.210.0050.00318.77
8.1.200.0110.00017.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.49
8.1.160.0080.00018.95
8.1.150.0070.00318.73
8.1.140.0070.00017.45
8.1.130.0000.00717.46
8.1.120.0040.00417.52
8.1.110.0000.00817.34
8.1.100.0040.00417.47
8.1.90.0040.00417.50
8.1.80.0030.00517.42
8.1.70.0040.00417.43
8.1.60.0130.00717.57
8.1.50.0130.00417.58
8.1.40.0080.00817.48
8.1.30.0140.00417.69
8.1.20.0100.00017.63
8.1.10.0070.00417.58
8.1.00.0100.00017.45
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0000.00718.55
8.0.270.0000.00718.12
8.0.260.0030.00316.80
8.0.250.0070.00017.07
8.0.240.0070.00017.00
8.0.230.0070.00017.07
8.0.220.0030.00316.97
8.0.210.0000.00716.95
8.0.200.0000.00817.02
8.0.190.0000.00816.99
8.0.180.0070.00416.95
8.0.170.0050.00516.86
8.0.160.0090.00316.86
8.0.150.0130.00316.68
8.0.140.0130.00316.88
8.0.130.0120.00316.77
8.0.120.0070.00716.75
8.0.110.0100.00316.96
8.0.100.0080.00616.94
8.0.90.0120.00216.88
8.0.80.0110.00316.94
8.0.70.0040.01116.89
8.0.60.0100.00316.75
8.0.50.0080.00816.92
8.0.30.0050.01116.80
8.0.20.0180.00017.04
8.0.10.0120.00416.89
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0140.00316.65
7.4.290.0130.00416.47
7.4.280.0120.00416.66
7.4.270.0070.01016.46
7.4.260.0070.00516.64
7.4.250.0120.00316.46
7.4.240.0080.00316.53
7.4.230.0100.00716.57
7.4.220.0100.00516.45
7.4.210.0050.00916.67
7.4.200.0060.00616.55
7.4.190.0110.00316.62
7.4.180.0130.00016.75
7.4.160.0120.00016.63
7.4.150.0080.00416.65
7.4.140.0050.00516.62
7.4.130.0080.00416.43
7.4.120.0070.00716.51
7.4.110.0060.00616.49
7.4.100.0040.00416.58
7.4.90.0000.00716.51
7.4.80.0030.00316.48
7.4.70.0030.00316.42
7.4.60.0000.00716.46
7.4.50.0070.00016.31
7.4.40.0070.00016.46
7.4.30.0080.00016.34
7.4.20.0090.00016.52
7.4.10.0060.00316.49
7.4.00.0070.00316.45

preferences:
27.73 ms | 403 KiB | 5 Q