3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(idn_to_ascii( "beni&servizi", 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.00719.31
8.3.50.0270.00821.52
8.3.40.0160.00619.59
8.3.30.0160.00019.50
8.3.20.0040.00421.21
8.3.10.0050.00324.36
8.3.00.0000.00822.65
8.2.180.0140.00719.29
8.2.170.0120.00322.96
8.2.160.0100.00321.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00021.95
8.2.120.0050.00326.35
8.2.110.0080.00319.94
8.2.100.0040.00818.92
8.2.90.0030.00519.96
8.2.80.0080.00018.38
8.2.70.0030.00618.38
8.2.60.0100.00018.68
8.2.50.0070.00318.50
8.2.40.0000.00823.07
8.2.30.0050.00320.31
8.2.20.0050.00318.56
8.2.10.0000.00818.93
8.2.00.0000.00818.84
8.1.280.0070.00725.92
8.1.270.0150.00422.87
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0040.00423.09
8.1.230.0080.00318.71
8.1.220.0000.00818.53
8.1.210.0000.00818.77
8.1.200.0000.00918.10
8.1.190.0040.00417.98
8.1.180.0050.00318.10
8.1.170.0090.00319.38
8.1.160.0050.00221.61
8.1.150.0030.00519.84
8.1.140.0030.00520.44
8.1.130.0040.00418.51
8.1.120.0040.00418.25
8.1.110.0040.00418.23
8.1.100.0000.00818.21
8.1.90.0040.00418.25
8.1.80.0070.00018.20
8.1.70.0070.00018.28
8.1.60.0080.00018.40
8.1.50.0030.00618.34
8.1.40.0080.00018.33
8.1.30.0030.00618.50
8.1.20.0030.00518.39
8.1.10.0040.00418.32
8.1.00.0040.00418.17
8.0.300.0040.00419.53
8.0.290.0080.00017.50
8.0.280.0030.00319.31
8.0.270.0030.00317.54
8.0.260.0030.00317.98
8.0.250.0030.00317.54
8.0.240.0040.00417.56
8.0.230.0000.00817.58
8.0.220.0070.00017.48
8.0.210.0040.00417.52
8.0.200.0060.00017.65
8.0.190.0000.00717.48
8.0.180.0000.00717.64
8.0.170.0030.00617.64
8.0.160.0070.00017.70
8.0.150.0000.00717.60
8.0.140.0070.00017.64
8.0.130.0000.00613.29
8.0.120.0050.00317.49
8.0.110.0050.00317.62
8.0.100.0040.00417.72
8.0.90.0050.00217.74
8.0.80.0080.00717.51
8.0.70.0040.00417.36
8.0.60.0000.00717.57
8.0.50.0000.00817.69
8.0.30.0110.00817.86
8.0.20.0050.01417.74
8.0.10.0050.00217.65
8.0.00.0160.00317.54
7.4.330.0000.00616.77
7.4.320.0060.00017.24
7.4.300.0000.00617.13
7.4.290.0070.00017.24
7.4.280.0040.00417.23
7.4.270.0040.00417.21
7.4.260.0030.00317.27
7.4.250.0040.00417.27
7.4.240.0000.00717.33
7.4.230.0000.00717.12
7.4.220.0090.00917.27
7.4.210.0070.01017.31
7.4.200.0060.00317.12
7.4.160.0100.01317.14
7.4.150.0100.00717.41
7.4.140.0170.00617.86
7.4.130.0090.01117.24
7.4.120.0100.00717.24
7.4.110.0090.00917.24
7.4.100.0090.00917.15
7.4.90.0060.01217.26
7.4.80.0080.01219.39
7.4.70.0120.00817.37
7.4.60.0160.00617.25
7.4.50.0000.01517.39
7.4.40.0080.00817.18
7.4.30.0090.01617.26
7.4.00.0070.01015.92
7.3.330.0030.00513.14
7.3.320.0060.00013.15
7.3.310.0000.00717.15
7.3.300.0000.00717.11
7.3.290.0040.00417.02
7.3.280.0110.00617.03
7.3.270.0110.00817.40
7.3.260.0030.01417.32
7.3.250.0130.00717.10
7.3.240.0170.00217.36
7.3.230.0090.01217.14
7.3.210.0110.00717.03
7.3.200.0060.00919.39
7.3.190.0060.01217.37
7.3.180.0110.00617.31
7.3.170.0110.00517.07
7.3.160.0140.00317.15
7.3.10.0070.00717.19
7.3.00.0080.00517.19
7.2.330.0110.00817.50
7.2.320.0130.00317.55
7.2.310.0140.00317.26
7.2.300.0120.00917.62
7.2.290.0060.01017.28
7.2.130.0090.00317.14
7.2.120.0070.00717.43
7.2.110.0070.00317.54
7.2.100.0080.00417.33
7.2.90.0090.00617.18
7.2.80.0000.00917.06
7.2.70.0130.00617.32
7.2.60.0100.00817.38
7.2.50.0090.00417.54
7.2.40.0070.00717.65
7.2.30.0040.01217.43
7.2.20.0000.01117.10
7.2.10.0080.00317.14
7.2.00.0030.00918.95
7.1.250.0050.00516.43
7.1.200.0000.01316.52
7.1.100.0040.00419.18
7.1.70.0070.00318.16
7.1.60.0070.01419.40
7.1.50.0000.01117.82
7.1.00.0030.07723.35
7.0.200.0390.00015.54
7.0.60.0130.06722.64
7.0.50.0230.06317.86
7.0.40.0130.03320.82
7.0.30.0200.05320.67
7.0.20.0300.06720.91
7.0.10.0100.08320.95
7.0.00.0130.06020.94
5.6.280.0070.05721.69
5.6.210.0030.04021.26
5.6.200.0100.04318.19
5.6.190.0030.08721.33
5.6.180.0230.05721.33
5.6.170.0300.05021.32
5.6.160.0100.06321.21
5.6.150.0100.07318.18
5.6.140.0030.08318.20
5.6.130.0070.04018.18
5.6.120.0030.05721.79
5.6.110.0170.07721.64
5.6.100.0070.06721.88
5.6.90.0000.08721.71
5.6.80.0270.06321.18
5.5.350.0100.07721.06
5.5.340.0000.08717.91
5.5.330.0230.06721.00
5.5.320.0500.06321.06
5.5.310.0170.07021.03
5.5.300.0100.05717.91
5.5.290.0070.08717.91
5.5.280.0070.05321.62
5.5.270.0030.08721.62
5.5.260.0070.08721.50
5.5.250.0070.03721.34
5.5.240.0030.08720.84

preferences:
29.42 ms | 401 KiB | 5 Q