3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '/dav/files/admin/%C3%BC%C3%B6%C3%A4%C3%B6%C3%A4%C3%BC%C3%B6%C3%A4%C3%BB%C5%B7%C3%AE'; /** * Decodes a url-encoded path segment. */ function decodePathSegment(string $path): string { $path = rawurldecode($path); $encoding = mb_detect_encoding($path, ['UTF-8', 'ISO-8859-1']); switch ($encoding) { case 'ISO-8859-1': $path = utf8_encode($path); } return $path; } var_dump( decodePathSegment($str));

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.5.30.0140.00520.11
8.5.20.0080.01020.05
8.5.10.0100.00818.77
8.5.00.0150.00820.18
8.4.180.0130.00920.72
8.4.170.0130.00820.50
8.4.160.0160.00820.69
8.4.150.0080.00516.93
8.4.140.0140.00717.95
8.4.130.0100.00818.76
8.4.120.0140.00718.49
8.4.110.0120.00618.86
8.4.100.0030.00617.77
8.4.90.0100.00620.86
8.4.80.0130.00618.74
8.4.70.0110.00718.85
8.4.60.0110.00920.50
8.4.50.0020.00718.68
8.4.40.0140.00719.42
8.4.30.0120.00320.41
8.4.20.0070.01118.24
8.4.10.0040.00420.53
8.3.300.0100.00619.19
8.3.290.0140.00620.75
8.3.280.0120.00818.56
8.3.270.0100.01016.69
8.3.260.0110.00616.66
8.3.250.0080.00716.29
8.3.240.0110.00916.89
8.3.230.0100.00916.64
8.3.220.0040.00519.03
8.3.210.0090.00818.66
8.3.200.0060.00316.75
8.3.190.0030.00517.04
8.3.180.0110.00718.93
8.3.170.0060.01317.15
8.3.160.0150.00316.86
8.3.150.0120.00616.80
8.3.140.0080.00016.76
8.3.130.0040.00416.58
8.3.120.0040.00419.08
8.3.110.0030.00620.94
8.3.100.0030.00616.79
8.3.90.0140.00326.77
8.3.80.0060.00318.43
8.3.70.0110.00416.58
8.3.60.0070.01116.50
8.3.50.0110.00318.45
8.3.40.0090.00920.42
8.3.30.0070.00719.34
8.3.20.0060.00324.18
8.3.10.0080.00024.66
8.3.00.0000.00926.16
8.2.300.0100.00920.48
8.2.290.0120.00717.22
8.2.280.0110.00918.59
8.2.270.0040.00417.04
8.2.260.0110.00717.39
8.2.250.0110.00718.95
8.2.240.0040.00419.07
8.2.230.0030.00622.58
8.2.220.0030.00524.06
8.2.210.0070.01126.77
8.2.200.0120.00318.79
8.2.190.0150.00318.54
8.2.180.0070.01425.92
8.2.170.0110.01119.04
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.02
8.2.110.0070.00322.44
8.2.100.0040.00718.03
8.2.90.0050.00319.41
8.2.80.0000.00818.16
8.2.70.0060.00617.50
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0070.00018.20
8.2.20.0000.00820.61
8.2.10.0050.00218.13
8.2.00.0030.00519.35
8.1.340.0090.01121.77
8.1.330.0080.00216.38
8.1.320.0120.00916.27
8.1.310.0110.00416.87
8.1.300.0080.00318.10
8.1.290.0060.00330.84
8.1.280.0140.00025.92
8.1.270.0050.00323.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0050.00323.98
8.1.230.0100.00319.04
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0070.00417.47
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0080.00018.91
8.1.160.0040.00419.09
8.1.150.0020.00518.75
8.1.140.0000.00717.51
8.1.130.0000.00819.04
8.1.120.0070.00417.64
8.1.110.0100.00317.66
8.1.100.0030.01017.59
8.1.90.0070.00617.60
8.1.80.0060.00717.61
8.1.70.0090.00317.64
8.1.60.0050.01017.82
8.1.50.0070.00417.69
8.1.40.0130.00517.71
8.1.30.0150.00317.73
8.1.20.0110.00617.82
8.1.10.0110.00417.61
8.1.00.0140.00417.65
8.0.300.0050.00218.77
8.0.290.0040.00417.30
8.0.280.0070.00018.58
8.0.270.0070.00016.96
8.0.260.0070.00018.38
8.0.250.0040.00316.95
8.0.240.0110.00016.97
8.0.230.0090.00316.90
8.0.220.0080.00416.90
8.0.210.0060.00516.92
8.0.200.0070.00416.96
8.0.190.0040.00816.97
8.0.180.0070.00516.94
8.0.170.0110.00716.92
8.0.160.0130.00416.79
8.0.150.0110.00816.84
8.0.140.0100.00416.86
8.0.130.0150.00216.86
8.0.120.0100.00516.87
8.0.110.0130.00216.91
8.0.100.0080.00916.92
8.0.90.0140.00516.96
8.0.80.0140.00416.95
8.0.70.0130.00516.88
8.0.60.0130.00516.87
8.0.50.0080.00916.78
8.0.30.0090.00816.92
8.0.20.0120.00517.08
8.0.10.0160.00117.08
7.4.330.0050.00215.55
7.4.320.0050.00716.59
7.4.300.0060.00616.75
7.4.290.0030.00916.70
7.4.280.0160.00416.66
7.4.270.0060.00916.61
7.4.260.0090.00416.72
7.4.250.0100.00516.68
7.4.240.0140.00316.62
7.4.230.0130.00616.63
7.4.220.0120.00516.70
7.4.210.0130.00416.54
7.4.200.0100.00616.72
7.4.190.0090.00716.72
7.4.180.0150.00016.69
7.4.160.0130.00316.67
7.4.150.0100.00316.65
7.4.140.0120.00316.62
7.4.130.0150.00316.54
7.4.120.0130.00516.60
7.4.110.0110.00816.63
7.4.100.0140.00516.69
7.4.90.0130.00316.54
7.4.80.0110.00316.53
7.4.70.0080.00416.54
7.4.60.0070.00716.49
7.4.50.0120.00216.48
7.4.40.0110.00416.50
7.4.30.0070.00616.45
7.4.20.0130.00116.59
7.4.10.0090.00616.58
7.4.00.0110.00316.57
7.2.340.0050.00316.39

preferences:
45.57 ms | 1256 KiB | 5 Q