3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(idn_to_ascii( ".", IDNA_USE_STD3_RULES | IDNA_NONTRANSITIONAL_TO_ASCII | IDNA_CHECK_CONTEXTJ, // todo use IDNA_CHECK_BIDI ? INTL_IDNA_VARIANT_UTS46, $info )); var_dump($info); $errors = [ "IDNA_ERROR_EMPTY_LABEL", "IDNA_ERROR_LABEL_TOO_LONG", "IDNA_ERROR_DOMAIN_NAME_TOO_LONG", "IDNA_ERROR_LEADING_HYPHEN", "IDNA_ERROR_TRAILING_HYPHEN", "IDNA_ERROR_HYPHEN_3_4", "IDNA_ERROR_LEADING_COMBINING_MARK", "IDNA_ERROR_DISALLOWED", "IDNA_ERROR_PUNYCODE", "IDNA_ERROR_LABEL_HAS_DOT", "IDNA_ERROR_INVALID_ACE_LABEL", "IDNA_ERROR_BIDI", "IDNA_ERROR_CONTEXTJ" ]; foreach($errors as $errorReadable){ $error = constant($errorReadable); if($info['errors'] & $error){ echo $errorReadable . "\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.3.60.0110.00717.24
8.3.50.0070.01421.65
8.3.40.0100.00719.46
8.3.30.0180.00419.46
8.3.20.0040.00420.73
8.3.10.0000.00724.41
8.3.00.0050.00324.23
8.2.180.0060.01217.13
8.2.170.0120.00322.96
8.2.160.0030.01021.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.63
8.2.120.0080.00026.35
8.2.110.0040.00721.33
8.2.100.0060.00618.54
8.2.90.0000.00718.91
8.2.80.0070.00218.13
8.2.70.0040.00418.25
8.2.60.0080.00018.36
8.2.50.0040.00418.68
8.2.40.0100.00020.11
8.2.30.0050.00320.13
8.2.20.0050.00318.41
8.2.10.0000.00818.91
8.2.00.0040.00418.84
8.1.280.0040.01125.92
8.1.270.0180.00022.81
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0040.00422.81
8.1.230.0110.00021.64
8.1.220.0080.00018.28
8.1.210.0000.00819.71
8.1.200.0040.00418.26
8.1.190.0030.00517.75
8.1.180.0080.00318.10
8.1.170.0040.00418.23
8.1.160.0040.00421.38
8.1.150.0080.00019.73
8.1.140.0050.00320.32
8.1.130.0070.00018.39
8.1.120.0000.00818.08
8.1.110.0080.00018.12
8.1.100.0060.00318.09
8.1.90.0000.00818.04
8.1.80.0050.00317.99
8.1.70.0000.00718.12
8.1.60.0050.00318.25
8.1.50.0000.00818.16
8.1.40.0030.00618.22
8.1.30.0080.00018.34
8.1.20.0020.00518.24
8.1.10.0000.00718.22
8.1.00.0030.00618.13
8.0.300.0000.00720.84
8.0.290.0030.00617.25
8.0.280.0000.00719.24
8.0.270.0000.00717.94
8.0.260.0000.00717.95
8.0.250.0030.00317.38
8.0.240.0040.00417.42
8.0.230.0000.00817.53
8.0.220.0030.00317.41
8.0.210.0040.00417.50
8.0.200.0000.00617.45
8.0.190.0060.00317.59
8.0.180.0000.00717.57
8.0.170.0000.00817.62
8.0.160.0070.00017.61
8.0.150.0000.00717.52
8.0.140.0070.00017.41
8.0.130.0000.00513.38
8.0.120.0030.00517.45
8.0.110.0040.00417.45
8.0.100.0000.00717.46
8.0.90.0020.00517.54
8.0.80.0040.01417.52
8.0.70.0040.00417.63
8.0.60.0000.00817.45
8.0.50.0020.00517.55
8.0.30.0090.01117.91
8.0.20.0070.01217.59
8.0.10.0000.00717.57
8.0.00.0130.00917.55
7.4.330.0000.00516.79
7.4.320.0030.00317.26
7.4.300.0060.00617.21
7.4.290.0000.00817.10
7.4.280.0080.00017.23
7.4.270.0000.00717.11
7.4.260.0070.00017.26
7.4.250.0040.00417.18
7.4.240.0000.00717.15
7.4.230.0040.00417.32
7.4.220.0130.01017.35
7.4.210.0050.01317.25
7.4.200.0040.00417.04
7.4.160.0110.01117.02
7.4.150.0130.00317.40
7.4.140.0140.01017.86
7.4.130.0110.01017.33
7.4.120.0130.00817.23
7.4.110.0100.00717.15
7.4.100.0050.01417.09
7.4.90.0100.00717.11
7.4.80.0100.01319.39
7.4.70.0160.00017.23
7.4.60.0040.01217.04
7.4.50.0080.00617.02
7.4.40.0100.00717.15
7.4.30.0000.01917.34
7.4.00.0040.01215.42
7.3.330.0030.00313.10
7.3.320.0000.00513.03
7.3.310.0040.00416.85
7.3.300.0030.00316.85
7.3.290.0020.00516.73
7.3.280.0100.00716.93
7.3.270.0120.00617.40
7.3.260.0170.00017.07
7.3.250.0120.00517.06
7.3.240.0100.00817.08
7.3.230.0150.00316.87
7.3.210.0130.00417.30
7.3.200.0030.01919.39
7.3.190.0090.01017.31
7.3.180.0060.01217.00
7.3.170.0090.00617.24
7.3.160.0110.00417.21
7.2.330.0040.01317.27
7.2.320.0100.01317.22
7.2.310.0080.00817.18
7.2.300.0150.00417.21
7.2.290.0080.00817.34
7.2.60.0080.00517.35
7.2.00.0060.00620.17
7.1.200.0100.00616.55
7.1.100.0070.00718.63
7.1.70.0050.00317.69
7.1.60.0100.01419.40
7.1.50.0000.01117.91
7.1.00.0000.08022.96
7.0.200.0250.00615.78
7.0.60.0170.07322.43
7.0.50.0130.07017.88
7.0.40.0000.05320.63
7.0.30.0370.06020.80
7.0.20.0330.06720.65
7.0.10.0100.06720.73
7.0.00.0100.07020.81
5.6.280.0030.05021.56
5.6.210.0030.04021.38
5.6.200.0100.08018.13
5.6.190.0070.04320.98
5.6.180.0170.06021.12
5.6.170.0370.06720.95
5.6.160.0170.05021.19
5.6.150.0070.07318.11
5.6.140.0100.07718.20
5.6.130.0030.05718.22
5.6.120.0100.08321.74
5.6.110.0070.08321.66
5.6.100.0100.07021.64
5.6.90.0070.08321.69
5.6.80.0070.05320.94
5.5.350.0100.06721.16
5.5.340.0030.04317.93
5.5.330.0200.04721.16
5.5.320.0570.06720.83
5.5.310.0230.05720.86
5.5.300.0130.07317.95
5.5.290.0030.07317.93
5.5.280.0130.04721.43
5.5.270.0070.07021.36
5.5.260.0070.05021.46
5.5.250.0070.03721.27
5.5.240.0300.06720.85

preferences:
53.46 ms | 401 KiB | 5 Q