3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP 7.3.x $result=idn_to_ascii('.pm--domain.com', IDNA_DEFAULT, INTL_IDNA_VARIANT_2003); var_dump(intl_get_error_code()); // 66567 var_dump(intl_get_error_message()); // idn_to_ascii: cannot convert to ASCII: U_IDNA_ZERO_LENGTH_LABEL_ERROR // PHP 7.4.x $result=idn_to_ascii('.pm--domain.com.', IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46, $data); var_dump(intl_get_error_code()); // 0 var_dump(intl_get_error_message()); // U_ZERO_ERROR var_dump($data); /**array(3) { ["result"]=> string(16) ".pm--domain.com." ["isTransitionalDifferent"]=> bool(false) ["errors"]=> int(33) }*/

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.0.30.0130.00417.00
8.0.20.0090.00917.09
8.0.00.0070.01816.50
7.4.130.0080.01417.33
7.4.120.0040.01717.23
7.4.110.0150.00517.13
7.4.100.0060.01217.25
7.4.90.0070.01717.23
7.4.80.0080.01419.39
7.4.70.0100.01318.31
7.4.60.0120.01418.38
7.4.50.0110.01718.22
7.4.40.0190.00418.34
7.4.30.0090.01218.41
7.4.20.0150.00818.12
7.4.10.0170.00318.20
7.4.00.0050.01218.29
7.3.260.0100.01517.05
7.3.240.0080.01017.24
7.3.230.0060.01017.07
7.3.210.0090.00917.44
7.3.200.0070.01019.39
7.3.190.0160.00718.29
7.3.180.0120.01018.41
7.3.170.0080.01218.33
7.3.160.0110.01318.19
7.3.150.0050.01418.34
7.3.140.0180.00218.31
7.3.130.0100.00818.37
7.3.120.0130.00618.41
7.3.110.0100.01018.35
7.3.100.0130.00318.36
7.3.90.0130.00718.10
7.3.80.0100.01218.26
7.3.70.0140.00618.26
7.3.60.0100.01018.17
7.3.50.0100.00918.13
7.3.40.0110.00918.18
7.3.30.0090.01318.24
7.3.20.0150.00818.18
7.3.10.0160.00318.14
7.3.00.0080.01318.12
7.2.330.0130.00317.11
7.2.320.0080.01319.39
7.2.310.0080.01418.33
7.2.300.0140.01318.41
7.2.290.0140.01118.50
7.2.280.0170.00518.24
7.2.270.0120.00918.38
7.2.260.0070.01018.42
7.2.250.0110.00818.28
7.2.240.0130.00718.34
7.2.230.0150.00618.36
7.2.220.0070.01418.37
7.2.210.0080.01218.17
7.2.200.0100.00818.23
7.2.190.0040.01518.20
7.2.180.0130.00718.23
7.2.170.0120.00518.31
7.2.160.0100.01018.33
7.2.150.0090.00918.30
7.2.140.0080.01218.31
7.2.130.0140.00818.32
7.2.120.0090.00918.29
7.2.110.0050.01318.40
7.2.100.0120.00918.39
7.2.90.0130.00818.31
7.2.80.0120.00918.27
7.2.70.0080.01218.34
7.2.60.0140.00718.26
7.2.50.0140.00618.36
7.2.40.0080.00918.31
7.2.30.0170.01218.32
7.2.20.0110.00818.25
7.2.10.0090.00818.20
7.2.00.0080.01018.24
7.1.330.0170.02119.39
7.1.320.0280.00619.39
7.1.310.0240.01519.39
7.1.300.0150.01819.39
7.1.290.0150.02119.39
7.1.280.0250.01119.39
7.1.270.0360.01119.39
7.1.260.0300.00319.39
7.1.250.0290.00919.39
7.1.240.0370.01019.39
7.1.230.0240.00919.39
7.1.220.0130.01619.39
7.1.210.0240.00719.39
7.1.200.0210.01019.39
7.1.190.0310.01419.39
7.1.180.0210.01119.39
7.1.170.0210.00819.39
7.1.160.0200.01019.39
7.1.150.0060.01219.39
7.1.140.0110.00719.39
7.1.130.0130.00519.39
7.1.120.0140.00919.39
7.1.110.0170.01719.39
7.1.100.0200.00519.39
7.1.90.0230.01119.39
7.1.80.0090.01219.39
7.1.70.0290.00319.39
7.1.60.0180.01219.39
7.1.50.0220.00719.39
7.1.40.0240.00519.39
7.1.30.0210.00919.39
7.1.20.0100.01919.39
7.1.10.0290.00419.39
7.1.00.0180.01219.39
7.0.330.0260.00419.39
7.0.320.0190.01319.39
7.0.310.0240.00519.39
7.0.300.0290.00019.39
7.0.290.0170.01219.39
7.0.280.0260.00419.39
7.0.270.0180.00919.39
7.0.260.0190.01019.39
7.0.250.0290.00519.39
7.0.240.0100.01519.39
7.0.230.0270.00719.39
7.0.220.0250.00719.39
7.0.210.0680.01119.39
7.0.200.0180.01119.39
7.0.190.0200.01119.39
7.0.180.0160.01119.39
7.0.170.0220.00919.39
7.0.160.0200.01219.39
7.0.150.0170.01419.39
7.0.140.0210.01019.39
7.0.130.0160.01319.39
7.0.120.0350.00719.39
7.0.110.0150.01519.39
7.0.100.0170.01319.39
7.0.90.0310.00619.39
7.0.80.0350.00419.39
7.0.70.0180.01119.39
7.0.60.0230.01019.39
7.0.50.0240.01019.39
7.0.40.0240.00819.39
7.0.30.0220.00619.39
7.0.20.0270.00519.39
7.0.10.0040.01819.39
7.0.00.0170.00719.39
5.6.400.0210.01619.39
5.6.390.0260.00319.39
5.6.380.0160.02219.39
5.6.370.0150.01919.39
5.6.360.0160.01319.39
5.6.350.0200.00919.39
5.6.340.0160.01619.39
5.6.330.0180.01519.39
5.6.320.0120.01519.39
5.6.310.0210.01319.39
5.6.300.0280.01019.39
5.6.290.0260.01019.39
5.6.280.0230.01019.39
5.6.270.0240.01519.39
5.6.260.0140.01819.39
5.6.250.0120.01919.39
5.6.240.0230.01019.39
5.6.230.0240.00919.39
5.6.220.0250.01019.39
5.6.210.0110.02119.39
5.6.200.0180.01519.39
5.6.190.0160.01219.39
5.6.180.0130.01319.39
5.6.170.0170.00819.39
5.6.160.0200.01219.39
5.6.150.0250.00719.39
5.6.140.0270.00919.39
5.6.130.0270.00619.39
5.6.120.0190.00919.39
5.6.110.0160.01619.39
5.6.100.0230.01219.39
5.6.90.0230.01019.39
5.6.80.0140.01519.39
5.6.70.0120.01919.39
5.6.60.0280.01219.39
5.6.50.0270.00919.39
5.6.40.0230.00819.39
5.6.30.0270.00319.39
5.6.20.0200.01219.39
5.6.10.0280.01019.39
5.6.00.0280.00919.39
5.5.380.0210.01119.39
5.5.370.0140.01419.39
5.5.360.0050.01919.39
5.5.350.0260.00419.39
5.5.340.0210.01519.39
5.5.330.0140.00919.39
5.5.320.0070.01419.39
5.5.310.0130.00719.39
5.5.300.0140.00519.39
5.5.290.0120.00919.39
5.5.280.0160.00519.39
5.5.270.0060.01319.39
5.5.260.0210.00419.39
5.5.250.0070.01419.39
5.5.240.0140.00719.39
5.5.230.0090.01319.39
5.5.220.0100.01419.39
5.5.210.0200.01119.39
5.5.200.0070.01519.39
5.5.190.0060.01819.39
5.5.180.0140.01019.39
5.5.170.0070.01319.39
5.5.160.0120.01719.39
5.5.150.0310.00619.39
5.5.140.0180.01519.39
5.5.130.0270.01119.39
5.5.120.0290.01019.39
5.5.110.0150.02219.39
5.5.100.0300.00819.39
5.5.90.0200.02119.39
5.5.80.0250.01419.39
5.5.70.0280.01619.39
5.5.60.0170.02019.39
5.5.50.0240.01419.39
5.5.40.0260.01319.39
5.5.30.0160.02119.39
5.5.20.0300.00319.39
5.5.10.0150.02119.39
5.5.00.0240.00919.39
5.4.450.0160.00719.39
5.4.440.0200.00319.39
5.4.430.0140.01119.39
5.4.420.0250.00019.39
5.4.410.0220.00619.39
5.4.400.0210.00919.39
5.4.390.0120.00919.39
5.4.380.0220.00819.39
5.4.370.0140.00919.39
5.4.360.0130.00919.39
5.4.350.0170.00719.39
5.4.340.0140.01019.39
5.4.330.0180.01119.39
5.4.320.0110.01119.39
5.4.310.0130.01419.39
5.4.300.0130.01019.39
5.4.290.0250.00319.39
5.4.280.0240.00319.39
5.4.270.0190.01019.39
5.4.260.0200.00919.39
5.4.250.0200.01119.39
5.4.240.0180.01219.39
5.4.230.0190.01019.39
5.4.220.0270.00319.39
5.4.210.0080.00619.39
5.4.200.0230.00919.39
5.4.190.0230.00919.39
5.4.180.0210.00619.39
5.4.170.0160.01319.39
5.4.160.0140.01119.39
5.4.150.0150.01119.39
5.4.140.0130.01619.39
5.4.130.0190.01219.39
5.4.120.0180.00919.39
5.4.110.0150.01219.39
5.4.100.0160.01019.39
5.4.90.0150.00719.39
5.4.80.0100.01319.39
5.4.70.0230.00919.39
5.4.60.0330.00619.39
5.4.50.0180.00919.39
5.4.40.0190.00619.39
5.4.30.0250.00519.39
5.4.20.0220.00319.39
5.4.10.0170.01019.39
5.4.00.0200.00319.39
5.3.290.0140.01419.39
5.3.280.0220.00619.39
5.3.270.0170.01319.39
5.3.260.0110.01419.39
5.3.250.0200.00919.39
5.3.240.0120.02019.39
5.3.230.0160.01319.39
5.3.220.0160.01019.39
5.3.210.0200.01019.39
5.3.200.0190.00719.39
5.3.190.0160.00819.39
5.3.180.0160.01019.39
5.3.170.0180.01219.39
5.3.160.0180.01419.39
5.3.150.0170.01019.39
5.3.140.0170.01019.39
5.3.130.0060.01519.39
5.3.120.0110.01519.39
5.3.110.0140.01119.39
5.3.100.0100.01319.39
5.3.90.0140.00919.39
5.3.80.0190.00919.39
5.3.70.0220.00519.39
5.3.60.0210.00319.39
5.3.50.0100.01419.39
5.3.40.0120.01219.39
5.3.30.0200.00519.39
5.3.20.0150.01519.39
5.3.10.0240.00019.39
5.3.00.0140.00919.39
5.2.170.0060.01319.39
5.2.160.0130.00819.39
5.2.150.0100.01019.39
5.2.140.0160.01019.39
5.2.130.0170.00419.39
5.2.120.0070.01419.39
5.2.110.0170.00319.39
5.2.100.0140.00719.39
5.2.90.0170.00719.39
5.2.80.0100.01419.39
5.2.70.0110.01119.39
5.2.60.0110.01119.39
5.2.50.0100.01419.39
5.2.40.0130.00619.39
5.2.30.0140.01019.39
5.2.20.0120.00619.39
5.2.10.0130.00919.39
5.2.00.0100.01019.39
5.1.60.0080.01119.39
5.1.50.0160.00319.39
5.1.40.0170.00419.39
5.1.30.0050.01419.39
5.1.20.0200.00319.39
5.1.10.0120.00719.39
5.1.00.0140.00319.39
5.0.50.0110.00619.39
5.0.40.0130.00319.39
5.0.30.0120.00619.39
5.0.20.0140.00319.39
5.0.10.0070.00719.39
5.0.00.0040.00919.39
4.4.90.0090.00319.39
4.4.80.0070.00519.39
4.4.70.0040.00419.39
4.4.60.0040.00519.39
4.4.50.0080.00319.39
4.4.40.0100.00019.39
4.4.30.0110.00019.39
4.4.20.0070.00619.39
4.4.10.0070.00419.39
4.4.00.0080.00319.39
4.3.110.0070.00319.39
4.3.100.0060.00319.39
4.3.90.0070.00519.39
4.3.80.0110.00019.39
4.3.70.0080.00319.39
4.3.60.0100.00019.39
4.3.50.0050.00519.39
4.3.40.0070.00419.39
4.3.30.0080.00019.39
4.3.20.0060.00319.39
4.3.10.0000.00819.39
4.3.00.0040.00419.39