3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link https://stackoverflow.com/a/10042586/367456 * @param string $string unicode and ulrencoded string * @return string decoded string */ function utf8_urldecode($string) { $string = preg_replace( "/%u([0-9a-f]{3,4})/i", "&#x\\1;", urldecode($string) ); return html_entity_decode($string, ENT_XML1, 'UTF-8'); } $decoded = utf8_urldecode('%u20AC'); class_exists('IntlChar') && printf("U+%X %s\n", IntlChar::ord($decoded), IntlChar::charName($decoded)); echo "\\x" . implode("\\x", str_split(strtoupper(bin2hex($decoded)), 2)), "\n"; echo addcslashes($decoded, "\x7F..\xFF"), "\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.130.0120.01219.35
8.4.120.0110.00824.68
8.4.110.0130.00822.84
8.4.100.0100.01018.50
8.4.90.0230.00819.08
8.4.80.0100.01120.37
8.4.70.0110.00918.49
8.4.60.0270.00619.31
8.4.50.0120.00819.22
8.4.40.0130.00720.21
8.4.30.0120.00620.93
8.4.20.0140.00518.54
8.4.10.0110.00022.49
8.3.260.0140.00617.48
8.3.250.0120.00819.38
8.3.240.0150.00517.55
8.3.230.0110.00817.36
8.3.220.0060.00217.84
8.3.210.0110.00418.94
8.3.200.0050.00317.50
8.3.190.0100.00917.53
8.3.180.0030.00619.47
8.3.170.0070.00719.71
8.3.160.0120.00621.06
8.3.150.0040.00419.21
8.3.140.0130.00617.99
8.3.130.0040.00419.42
8.3.120.0080.00021.48
8.3.110.0090.00017.50
8.3.100.0150.00024.06
8.3.90.0110.00426.77
8.3.80.0060.00317.97
8.3.70.0090.00917.38
8.3.60.0090.00917.25
8.3.50.0040.01520.95
8.3.40.0140.00022.52
8.3.30.0130.00319.62
8.3.20.0040.00424.18
8.3.10.0090.00024.66
8.3.00.0050.00226.16
8.2.290.0120.00721.12
8.2.280.0110.00419.09
8.2.270.0110.01117.85
8.2.260.0090.00017.44
8.2.250.0140.00417.50
8.2.240.0110.00017.84
8.2.230.0140.00020.94
8.2.220.0000.00937.54
8.2.210.0050.00326.77
8.2.200.0060.00317.25
8.2.190.0120.00317.25
8.2.180.0120.00325.92
8.2.170.0070.00722.96
8.2.160.0110.00723.01
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.53
8.2.110.0060.00321.81
8.2.100.0000.01218.66
8.2.90.0000.00919.96
8.2.80.0050.00319.61
8.2.70.0000.00818.25
8.2.60.0040.00418.38
8.2.50.0040.00418.38
8.2.40.0000.00820.82
8.2.30.0060.00318.72
8.2.20.0040.00421.14
8.2.10.0080.00018.72
8.2.00.0050.00219.90
8.1.330.0140.00522.61
8.1.320.0130.00617.28
8.1.310.0090.00919.13
8.1.300.0090.00020.89
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0030.00624.53
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00724.54
8.1.230.0070.00423.32
8.1.220.0040.00418.28
8.1.210.0030.00618.77
8.1.200.0000.01017.88
8.1.190.0000.00817.88
8.1.180.0060.00318.10
8.1.170.0030.00518.28
8.1.160.0000.00719.54
8.1.150.0040.00419.45
8.1.140.0020.00518.23
8.1.130.0060.00318.15
8.1.120.0040.00418.17
8.1.110.0030.00718.18
8.1.100.0040.00418.18
8.1.90.0000.00718.23
8.1.80.0090.00018.17
8.1.70.0110.00018.23
8.1.60.0070.00318.22
8.1.50.0040.01518.24
8.1.40.0140.00318.29
8.1.30.0040.01618.29
8.1.20.0130.00318.45
8.1.10.0080.01118.25
8.1.00.0090.00918.12
8.0.300.0040.00418.77
8.0.290.0000.00817.50
8.0.280.0040.00519.10
8.0.270.0070.00017.51
8.0.260.0000.00717.55
8.0.250.0040.00417.58
8.0.240.0040.00417.68
8.0.230.0030.00517.61
8.0.220.0000.00717.54
8.0.210.0000.00717.50
8.0.200.0090.00717.52
8.0.190.0160.00017.48
8.0.180.0140.00217.63
8.0.170.0120.00317.56
8.0.160.0080.00817.48
8.0.150.0050.00617.46
8.0.140.0070.00217.47
8.0.130.0090.00317.50
8.0.120.0000.00917.66
8.0.110.0000.00917.66
8.0.100.0030.00617.57
8.0.90.0080.00417.61
8.0.80.0100.00317.52
8.0.70.0030.01217.50
8.0.60.0120.00317.66
8.0.50.0120.00417.54
8.0.30.0100.00517.57
8.0.20.0120.00217.62
8.0.10.0000.01417.75
8.0.00.0090.00017.65
7.4.330.0000.00515.55
7.4.320.0070.00017.27
7.4.300.0030.00317.35
7.4.290.0100.00517.25
7.4.280.0140.00317.36
7.4.270.0140.00317.35
7.4.260.0110.00617.32
7.4.250.0100.00717.18
7.4.240.0140.00217.23
7.4.230.0140.00217.18
7.4.220.0070.00717.16
7.4.210.0050.00917.25
7.4.200.0070.00717.23
7.4.190.0090.00317.19
7.4.180.0100.00317.27
7.4.160.0100.00317.23
7.4.150.0140.00017.30
7.4.140.0120.00317.31
7.4.130.0050.00917.24
7.4.120.0110.00317.27
7.4.110.0140.00017.27
7.4.100.0130.00017.26
7.4.90.0040.00817.29
7.4.80.0000.00717.26
7.4.70.0020.00517.18
7.4.60.0070.00017.17
7.4.50.0040.00417.17
7.4.40.0050.00517.14
7.4.30.0130.00017.12
7.4.20.0100.00017.11
7.4.10.0090.00617.17
7.4.00.0040.00817.13
7.3.330.0110.00416.82
7.3.320.0050.01116.95
7.3.310.0120.00317.02
7.3.300.0130.00016.96
7.3.290.0070.00717.07
7.3.280.0120.00316.86
7.3.270.0140.00016.91
7.3.260.0100.00416.94
7.3.250.0070.00816.96
7.3.240.0050.01016.94
7.3.230.0150.00016.84
7.3.220.0060.00816.86
7.3.210.0000.01416.94
7.3.200.0120.00216.84
7.3.190.0000.01416.98
7.3.180.0070.00716.96
7.3.170.0110.00316.98
7.3.160.0150.00016.84
7.3.150.0100.00316.80
7.3.140.0000.01416.82
7.3.130.0070.00717.00
7.3.120.0120.00216.91
7.3.110.0050.00916.81
7.3.100.0090.00516.78
7.3.90.0090.00617.19
7.3.80.0120.00216.84
7.3.70.0100.00516.88
7.3.60.0050.00917.09
7.3.50.0000.01416.98
7.3.40.0070.00717.08
7.3.30.0140.00017.08
7.3.20.0120.00218.99
7.3.10.0160.00018.87
7.3.00.0150.00018.90
7.2.340.0140.00017.21
7.2.330.0050.01017.16
7.2.320.0000.01417.19
7.2.310.0100.00517.27
7.2.300.0140.00017.22
7.2.290.0070.00717.19
7.2.280.0110.00417.20
7.2.270.0080.00617.09
7.2.260.0120.00217.12
7.2.250.0060.00817.14
7.2.240.0000.01517.16
7.2.230.0110.00417.20
7.2.220.0100.00317.20
7.2.210.0110.00417.25
7.2.200.0160.00017.47
7.2.190.0050.01017.42
7.2.180.0100.00417.33
7.2.170.0120.00317.47
7.2.160.0070.00717.40
7.2.150.0120.00319.09
7.2.140.0090.00519.15
7.2.130.0050.01019.27
7.2.120.0000.01419.11
7.2.110.0090.00519.13
7.2.100.0150.00019.10
7.2.90.0100.00519.09
7.2.80.0140.00019.00
7.2.70.0080.00819.07
7.2.60.0150.00019.13
7.2.50.0120.00319.22
7.2.40.0080.00719.21
7.2.30.0120.00319.13
7.2.20.0100.00519.07
7.2.10.0120.00319.24
7.2.00.0110.00419.20
7.1.330.0080.00518.11
7.1.320.0100.00417.83
7.1.310.0130.00017.92
7.1.300.0100.00317.75
7.1.290.0110.00318.00
7.1.280.0140.00017.89
7.1.270.0000.01317.81
7.1.260.0140.00017.88
7.1.250.0000.01417.67
7.1.240.0000.01317.82
7.1.230.0130.00017.81
7.1.220.0030.01017.93
7.1.210.0140.00017.83
7.1.200.0090.00517.75
7.1.190.0130.00017.89
7.1.180.0130.00017.70
7.1.170.0070.00717.72
7.1.160.0100.00317.79
7.1.150.0150.00017.96
7.1.140.0070.00717.93
7.1.130.0120.00217.91
7.1.120.0120.00217.83
7.1.110.0100.00318.09
7.1.100.0070.00617.93
7.1.90.0090.00517.95
7.1.80.0090.00517.90
7.1.70.0140.00017.83
7.1.60.0110.00317.96
7.1.50.0050.00917.93
7.1.40.0150.00018.15
7.1.30.0130.00018.13
7.1.20.0110.00417.99
7.1.10.0080.00517.95
7.1.00.0110.00317.89
7.0.330.0070.00717.59
7.0.320.0000.01217.66
7.0.310.0100.00317.63
7.0.300.0080.00517.66
7.0.290.0090.00517.64
7.0.280.0130.00017.59
7.0.270.0090.00517.59
7.0.260.0110.00317.71
7.0.250.0070.00717.77
7.0.240.0080.00517.66
7.0.230.0080.00517.57
7.0.220.0140.00017.53
7.0.210.0050.00917.59
7.0.200.0100.00317.70
7.0.190.0060.00617.80
7.0.180.0090.00417.71
7.0.170.0130.00017.81
7.0.160.0100.00317.65
7.0.150.0100.00317.32
7.0.140.0060.00717.55
7.0.130.0110.00317.67
7.0.120.0090.00317.70
7.0.110.0130.00017.63
7.0.100.0100.00317.44
7.0.90.0100.00317.57
7.0.80.0130.00017.61
7.0.70.0100.00317.45
7.0.60.0100.00317.59
7.0.50.0070.00617.52
7.0.40.0000.01317.70
7.0.30.0060.00617.63
7.0.20.0090.00417.61
7.0.10.0100.00317.50
7.0.00.0130.00017.42
5.6.400.0100.00315.89
5.6.390.0000.01315.87
5.6.380.0120.00215.77
5.6.370.0110.00415.78
5.6.360.0080.00515.93
5.6.350.0070.00615.81
5.6.340.0070.00715.93
5.6.330.0130.00015.84
5.6.320.0040.01015.93
5.6.310.0100.00315.80
5.6.300.0100.00315.71
5.6.290.0030.00915.76
5.6.280.0080.00515.88
5.6.270.0090.00315.83
5.6.260.0100.00315.95
5.6.250.0040.00915.96
5.6.240.0130.00016.04
5.6.230.0040.00915.98
5.6.220.0040.00915.97
5.6.210.0050.00915.99
5.6.200.0130.00016.02
5.6.190.0030.01015.98
5.6.180.0130.00016.04
5.6.170.0100.00316.15
5.6.160.0100.00215.93
5.6.150.0080.00415.93
5.6.140.0100.00315.86
5.6.130.0080.00515.95
5.6.120.0060.00615.88
5.6.110.0120.00015.87
5.6.100.0130.00015.96
5.6.90.0120.00015.74
5.6.80.0040.00815.77
5.6.70.0080.00415.91
5.6.60.0110.00415.95
5.6.50.0090.00315.93
5.6.40.0090.00315.99
5.6.30.0130.00015.89
5.6.20.0060.00615.92
5.6.10.0050.00815.73
5.6.00.0120.00015.74
5.5.380.0130.00016.05
5.5.370.0110.00315.98
5.5.360.0130.00015.83
5.5.350.0090.00315.64
5.5.340.0090.00515.55
5.5.330.0090.00415.79
5.5.320.0100.00315.65
5.5.310.0000.01215.57
5.5.300.0080.00515.81
5.5.290.0070.00715.77
5.5.280.0080.00415.63
5.5.270.0100.00315.66
5.5.260.0130.00015.53
5.5.250.0130.00015.83
5.5.240.0040.00815.72
5.5.230.0080.00415.84
5.5.220.0080.00515.94
5.5.210.0100.00215.92
5.5.200.0100.00315.62
5.5.190.0070.00515.68
5.5.180.0040.00915.70
5.5.170.0080.00415.88
5.5.160.0120.00015.82
5.5.150.0100.00315.72
5.5.140.0100.00315.70
5.5.130.0130.00015.70
5.5.120.0100.00515.66
5.5.110.0090.00315.56
5.5.100.0080.00415.69
5.5.90.0120.00015.79
5.5.80.0120.00015.89
5.5.70.0040.00815.93
5.5.60.0130.00015.84
5.5.50.0000.01215.98
5.5.40.0060.00615.88
5.5.30.0090.00315.96
5.5.20.0120.00015.73
5.5.10.0100.00315.71
5.5.00.0040.00815.75
5.4.450.0100.00012.68
5.4.440.0070.00312.64
5.4.430.0100.00012.72
5.4.420.0100.00012.86
5.4.410.0070.00312.68
5.4.400.0070.00412.72
5.4.390.0080.00312.77
5.4.380.0090.00212.87
5.4.370.0080.00312.80
5.4.360.0050.00512.71
5.4.350.0110.00012.68
5.4.340.0100.00012.80
5.4.330.0110.00012.86
5.4.320.0050.00512.64
5.4.310.0110.00012.77
5.4.300.0120.00012.93
5.4.290.0110.00012.74
5.4.280.0070.00412.70
5.4.270.0070.00312.86
5.4.260.0110.00012.66
5.4.250.0040.00712.69
5.4.240.0070.00412.69
5.4.230.0100.00012.49
5.4.220.0030.00712.70
5.4.210.0110.00012.48
5.4.200.0100.00012.47
5.4.190.0080.00312.53
5.4.180.0050.00512.36
5.4.170.0050.00512.66
5.4.160.0080.00412.53
5.4.150.0090.00312.49
5.4.140.0070.00412.65
5.4.130.0060.00312.60
5.4.120.0060.00312.65
5.4.110.0030.00712.71
5.4.100.0110.00012.67
5.4.90.0060.00312.85
5.4.80.0050.00512.73
5.4.70.0030.00712.77
5.4.60.0050.00512.91
5.4.50.0070.00312.64
5.4.40.0050.00512.57
5.4.30.0050.00512.77
5.4.20.0100.00012.76
5.4.10.0110.00012.75
5.4.00.0030.00712.61
5.3.290.0070.00513.24
5.3.280.0070.00313.03
5.3.270.0060.00613.18
5.3.260.0080.00313.24
5.3.250.0050.00512.97
5.3.240.0030.00712.82
5.3.230.0070.00312.89
5.3.220.0070.00312.82
5.3.210.0110.00012.88
5.3.200.0040.00712.88
5.3.190.0070.00413.18
5.3.180.0070.00413.23
5.3.170.0070.00313.15
5.3.160.0080.00312.99
5.3.150.0080.00313.03
5.3.140.0120.00013.06
5.3.130.0050.00512.93
5.3.120.0070.00313.00
5.3.110.0000.01012.98
5.3.100.0080.00312.94
5.3.90.0100.00013.20
5.3.80.0030.00612.93
5.3.70.0070.00213.09
5.3.60.0050.00513.04
5.3.50.0100.00013.08
5.3.40.0050.00512.86
5.3.30.0080.00313.16
5.3.20.0070.00313.13
5.3.10.0000.01012.90
5.3.00.0000.01012.71
5.2.170.0000.00912.16
5.2.160.0030.00612.07
5.2.150.0080.00011.88
5.2.140.0080.00012.00
5.2.130.0080.00011.82
5.2.120.0030.00512.05
5.2.110.0040.00412.05
5.2.100.0070.00211.83
5.2.90.0030.00611.97
5.2.80.0070.00212.04
5.2.70.0000.00911.94
5.2.60.0040.00411.63
5.2.50.0080.00011.99
5.2.40.0080.00011.82
5.2.30.0030.00511.72
5.2.20.0080.00011.59
5.2.10.0040.00411.77
5.2.00.0000.00811.52
5.1.60.0050.00211.05
5.1.50.0020.00511.03
5.1.40.0070.00010.92
5.1.30.0050.00211.04
5.1.20.0070.00011.17
5.1.10.0070.00011.20
5.1.00.0040.00410.77
5.0.50.0060.00010.19
5.0.40.0030.0039.96
5.0.30.0000.0069.79
5.0.20.0060.00010.03
5.0.10.0060.0009.87
5.0.00.0000.0069.57
4.4.90.0000.0039.54
4.4.80.0040.0009.54
4.4.70.0040.0009.54
4.4.60.0040.0009.54
4.4.50.0020.0029.54
4.4.40.0040.0009.54
4.4.30.0000.0049.54
4.4.20.0040.0009.54
4.4.10.0040.0009.54
4.4.00.0000.0049.54
4.3.110.0030.0009.54
4.3.100.0040.0009.54
4.3.90.0040.0009.54
4.3.80.0040.0009.54
4.3.70.0000.0049.54
4.3.60.0040.0009.54
4.3.50.0040.0009.54
4.3.40.0040.0009.54
4.3.30.0000.0029.54
4.3.20.0000.0039.54
4.3.10.0000.0039.54
4.3.00.0000.0029.54

preferences:
141.74 ms | 403 KiB | 5 Q