3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Uo9kOMrb8Zfx8cHXT65JPNGYEbiYq90YNImYPdLkOo8w8Y8i8cPrRcD1ScSYEY8YB29ZRsvaQNHfRsuYEY91JaGYB29cTMniNsLkT79v8ZfcOMnpPImYRcywABgokJoH7JCmjZcolhT"; function base62decode($data) { $outstring = ''; $l = strlen($data); for ($i = 0; $i < $l; $i += 11) { $chunk = substr($data, $i, 11); $outlen = floor((strlen($chunk) * 6)/8); //6bit/char in, 8bits/char out, round down $y = gmp_strval(gmp_init(ltrim($chunk, '0'), 62), 16); //gmp doesn't like leading 0s $pad = str_pad($y, $outlen * 2, '0', STR_PAD_LEFT); //double output length as as we're going via hex (4bits/char) $outstring .= pack('H*', $pad); //same as hex2bin } return $outstring; } echo(base62decode($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.3.60.0100.00718.55
8.3.50.0100.00822.18
8.3.40.0120.00918.91
8.3.30.0100.00319.47
8.3.20.0080.00020.55
8.3.10.0080.00022.04
8.3.00.0050.00320.97
8.2.180.0100.01016.63
8.2.170.0070.00722.96
8.2.160.0040.01119.59
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0070.00417.88
8.2.110.0030.00622.35
8.2.100.0120.00019.88
8.2.90.0040.00419.42
8.2.80.0030.00518.30
8.2.70.0030.00717.75
8.2.60.0070.00418.30
8.2.50.0050.00318.07
8.2.40.0000.00920.13
8.2.30.0030.00518.36
8.2.20.0000.00717.83
8.2.10.0040.00417.88
8.2.00.0040.00417.97
8.1.280.0070.00725.92
8.1.270.0080.00024.12
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0060.00324.17
8.1.230.0000.01119.27
8.1.220.0000.00817.89
8.1.210.0050.00318.77
8.1.200.0030.00617.60
8.1.190.0040.00417.66
8.1.180.0040.00418.92
8.1.170.0040.00418.70
8.1.160.0050.00222.29
8.1.150.0000.00718.75
8.1.140.0050.00317.52
8.1.130.0050.00518.10
8.1.120.0070.00017.64
8.1.110.0040.00417.57
8.1.100.0040.00417.66
8.1.90.0000.00717.45
8.1.80.0000.00717.68
8.1.70.0070.00017.50
8.1.60.0090.00017.79
8.1.50.0000.00717.65
8.1.40.0050.00317.63
8.1.30.0030.00517.72
8.1.20.0030.00517.75
8.1.10.0040.00417.75
8.1.00.0040.00417.68
8.0.300.0070.00018.77
8.0.290.0040.00417.41
8.0.280.0070.00018.68
8.0.270.0030.00317.47
8.0.260.0030.00316.92
8.0.250.0000.00717.20
8.0.240.0040.00417.16
8.0.230.0000.00717.09
8.0.220.0030.00316.99
8.0.210.0070.00017.12
8.0.200.0030.00317.16
8.0.190.0040.00417.00
8.0.180.0040.00416.97
8.0.170.0000.00817.01
8.0.160.0040.00417.07
8.0.150.0040.00417.01
8.0.140.0000.00716.89
8.0.130.0030.00313.43
8.0.120.0000.00716.89
8.0.110.0040.00417.03
8.0.100.0040.00416.93
8.0.90.0000.00716.83
8.0.80.0040.01617.04
8.0.70.0000.00716.99
8.0.60.0030.00516.95
8.0.50.0000.00716.96
8.0.30.0100.00817.31
8.0.20.0090.00917.40
8.0.10.0080.00017.04
8.0.00.0040.01517.04
7.4.330.0050.00015.08
7.4.320.0000.00616.74
7.4.300.0000.00616.70
7.4.290.0000.00716.77
7.4.280.0030.00316.80
7.4.270.0030.00316.80
7.4.260.0040.00416.84
7.4.250.0000.00816.71
7.4.240.0010.00716.69
7.4.230.0030.00316.91
7.4.220.0030.01516.82
7.4.210.0100.00716.78
7.4.200.0040.00416.79
7.4.190.0030.00316.66
7.4.160.0030.01316.68
7.4.150.0130.00717.40
7.4.140.0050.01317.86
7.4.130.0120.00616.77
7.4.120.0090.00816.76
7.4.110.0040.01216.71
7.4.100.0070.01016.61
7.4.90.0100.00716.71
7.4.80.0060.01719.39
7.4.70.0030.01416.63
7.4.60.0040.01216.66
7.4.50.0070.00016.60
7.4.40.0070.00722.77
7.4.30.0120.00916.65
7.4.00.0030.01115.12
7.3.330.0050.00013.36
7.3.320.0030.00313.24
7.3.310.0040.00416.48
7.3.300.0030.00516.43
7.3.290.0080.01116.55
7.3.280.0100.00616.60
7.3.270.0070.01017.40
7.3.260.0130.00316.61
7.3.250.0110.00816.58
7.3.240.0130.00716.88
7.3.230.0130.00316.63
7.3.210.0130.00616.68
7.3.200.0060.01019.39
7.3.190.0070.01116.61
7.3.180.0090.00816.75
7.3.170.0120.00416.74
7.3.160.0030.01316.59
7.3.120.0100.00714.66
7.2.330.0090.00916.90
7.2.320.0070.01016.96
7.2.310.0030.01316.99
7.2.300.0140.00716.98
7.2.290.0040.01216.89
7.2.60.0000.01217.19
7.2.00.0060.00319.42
7.1.200.0030.00715.95
7.1.100.0070.00718.41
7.1.70.0070.00017.26
7.1.60.0100.01419.82
7.1.50.0000.01817.21
7.1.00.0100.07022.70
7.0.200.0000.01016.96
7.0.140.0030.07322.36
7.0.100.0230.05020.05
7.0.90.0200.07319.92
7.0.80.0030.05320.03
7.0.70.0100.08019.90
7.0.60.0070.08019.86
7.0.50.0100.08320.50
7.0.40.0000.05320.27
7.0.30.0070.08020.26
7.0.20.0070.05720.29
7.0.10.0130.06020.29
7.0.00.0100.08320.21
5.6.280.0100.06721.26
5.6.250.0070.07320.67
5.6.240.0030.08720.60
5.6.230.0030.08320.63
5.6.220.0100.04720.64
5.6.210.0100.08020.60
5.6.200.0070.09321.27
5.6.190.0130.07321.31
5.6.180.0030.07021.27
5.6.170.0030.04721.20
5.6.160.0070.07721.19
5.6.150.0070.08321.20
5.6.140.0030.06021.25
5.6.130.0030.09721.32
5.6.120.0100.05321.25
5.6.110.0100.07721.09
5.6.100.0070.09021.22
5.6.90.0130.07720.97
5.6.80.0030.05320.43
5.6.70.0100.04320.54
5.6.60.0000.05320.43
5.6.50.0070.05320.58
5.6.40.0070.08020.57
5.6.30.0130.07320.63
5.6.20.0070.06320.50
5.6.10.0100.07320.56
5.6.00.0030.08720.60
5.5.380.0070.06320.46
5.5.370.0030.04720.36
5.5.360.0170.06320.34
5.5.350.0070.08720.42
5.5.340.0230.06721.07
5.5.330.0070.07320.91
5.5.320.0030.04321.03
5.5.310.0030.08321.04
5.5.300.0100.08021.02
5.5.290.0070.08721.06
5.5.280.0130.07720.98
5.5.270.0170.07021.05
5.5.260.0170.07321.06
5.5.250.0030.09020.83
5.5.240.0100.04320.22
5.5.230.0100.07020.44
5.5.220.0100.07320.44
5.5.210.0100.04320.40
5.5.200.0130.07320.20
5.5.190.0100.07320.36
5.5.180.0070.08020.37
5.5.160.0070.06320.35
5.5.150.0100.07720.39
5.5.140.0170.04720.27
5.5.130.0100.06020.32
5.5.120.0170.07020.30
5.5.110.0030.06720.15
5.5.100.0070.05020.16
5.5.90.0100.07320.32
5.5.80.0030.08020.28
5.5.70.0000.04720.19
5.5.60.0000.04320.23
5.5.50.0030.06720.31
5.5.40.0070.06020.23
5.5.30.0070.07720.29
5.5.20.0100.07020.21
5.5.10.0070.07320.21
5.5.00.0100.05020.11
5.4.450.0070.08019.52
5.4.440.0030.08719.46
5.4.430.0100.07319.52
5.4.420.0070.06019.31
5.4.410.0070.08719.53
5.4.400.0000.08019.36
5.4.390.0030.07719.00
5.4.380.0070.08019.32
5.4.370.0200.06319.00
5.4.360.0170.07319.00
5.4.350.0030.08019.22
5.4.340.0130.03719.25
5.4.320.0070.04319.13
5.4.310.0030.04719.31
5.4.300.0070.06318.97
5.4.290.0100.07019.32
5.4.280.0100.07719.41
5.4.270.0100.07019.29
5.4.260.0100.07719.23
5.4.250.0070.04719.20
5.4.240.0100.04719.37
5.4.230.0130.06718.99
5.4.220.0030.06319.37
5.4.210.0000.07719.10
5.4.200.0130.06019.15
5.4.190.0130.07719.30
5.4.180.0030.06719.30
5.4.170.0130.04719.22
5.4.160.0030.04019.14
5.4.150.0100.07019.40
5.4.140.0100.06316.61
5.4.130.0130.04016.54
5.4.120.0130.05316.57
5.4.110.0170.06316.51
5.4.100.0070.08016.54
5.4.90.0030.06316.56
5.4.80.0030.06316.50
5.4.70.0030.07716.61
5.4.60.0100.06716.55
5.4.50.0000.05716.49
5.4.40.0070.07716.68
5.4.30.0030.07716.59
5.4.20.0070.07716.48
5.4.10.0130.05716.59
5.4.00.0070.07015.96
5.3.290.0100.07014.78
5.3.280.0070.06314.65
5.3.270.0000.06014.54
5.3.260.0100.03714.58
5.3.250.0100.04714.66
5.3.240.0030.08014.71
5.3.230.0000.08314.59
5.3.220.0070.04314.69
5.3.210.0100.08714.67
5.3.200.0130.05314.53
5.3.190.0070.04014.55
5.3.180.0070.03714.63
5.3.170.0130.05314.62
5.3.160.0100.06314.59
5.3.150.0070.06714.63
5.3.140.0130.07714.48
5.3.130.0130.07014.57
5.3.120.0030.07014.48
5.3.110.0070.06714.66
5.3.100.0070.07314.18
5.3.90.0170.06014.09
5.3.80.0030.03713.99
5.3.70.0100.07314.01
5.3.60.0070.05714.09
5.3.50.0070.05714.04
5.3.40.0130.06713.97
5.3.30.0100.05013.89
5.3.20.0130.06013.59
5.3.10.0070.07013.59
5.3.00.0030.04013.69
5.2.170.0070.03311.15
5.2.160.0030.04311.17
5.2.150.0000.03311.15
5.2.140.0070.06011.07
5.2.130.0070.06010.98
5.2.120.0030.03311.19
5.2.110.0070.03311.03
5.2.100.0070.05710.95
5.2.90.0070.03311.22
5.2.80.0000.06311.08
5.2.70.0030.05311.18
5.2.60.0030.04710.98
5.2.50.0030.03011.03
5.2.40.0000.04711.00
5.2.30.0000.03310.98
5.2.20.0030.05310.98
5.2.10.0070.04010.81
5.2.00.0100.04710.72
5.1.60.0030.0379.89
5.1.50.0000.0509.83
5.1.40.0070.0479.86
5.1.30.0000.03310.27
5.1.20.0030.03010.21
5.1.10.0000.05010.05
5.1.00.0070.04010.13
5.0.50.0000.0278.54
5.0.40.0030.0478.49
5.0.30.0000.0608.35
5.0.20.0000.0238.31
5.0.10.0070.0478.28
5.0.00.0070.0608.24
4.4.90.0000.0208.24
4.4.80.0000.0278.24
4.4.70.0000.0238.24
4.4.60.0000.0238.24
4.4.50.0030.0278.24
4.4.40.0070.0278.24
4.4.30.0030.0238.24
4.4.20.0000.0378.24
4.4.10.0070.0278.24
4.4.00.0000.0308.24
4.3.110.0030.0338.24
4.3.100.0030.0138.24
4.3.90.0000.0178.24
4.3.80.0000.0308.24
4.3.70.0070.0278.24
4.3.60.0070.0278.24
4.3.50.0000.0278.24
4.3.40.0000.0338.24
4.3.30.0000.0208.24
4.3.20.0030.0338.24
4.3.10.0030.0308.24
4.3.00.0000.0308.24

preferences:
35.3 ms | 401 KiB | 5 Q