3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = "abcdefABCDEF1234567890"; var_dump(base64_encode($token)); var_dump(base64_encode(strtolower($token))); var_dump(base64_encode(strtoupper($token))); var_dump(base64_encode(hex2bin($token))); var_dump(base64_encode(hex2bin(strtolower($token)))); var_dump(base64_encode(hex2bin(strtoupper($token))));

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.70.0060.01218.18
8.3.60.0180.00016.50
8.3.50.0130.00521.15
8.3.40.0070.01418.57
8.3.30.0070.01018.96
8.3.20.0040.00420.38
8.3.10.0050.00223.44
8.3.00.0000.00723.71
8.2.180.0090.00618.18
8.2.170.0030.01422.96
8.2.160.0140.00021.95
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00517.35
8.2.110.0080.00019.27
8.2.100.0110.00017.78
8.2.90.0080.00017.50
8.2.80.0080.00019.54
8.2.70.0040.00417.78
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0040.00420.43
8.2.30.0090.00017.92
8.2.20.0030.00517.50
8.2.10.0080.00017.93
8.2.00.0060.00318.03
8.1.280.0100.01025.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00319.38
8.1.230.0100.00020.27
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00617.10
8.1.190.0090.00018.88
8.1.180.0050.00518.10
8.1.170.0000.00818.59
8.1.160.0040.00421.87
8.1.150.0000.00918.83
8.1.140.0080.00017.31
8.1.130.0050.00317.56
8.1.120.0050.00217.43
8.1.110.0040.00417.38
8.1.100.0040.00417.28
8.1.90.0050.00217.22
8.1.80.0040.00417.39
8.1.70.0000.00717.44
8.1.60.0000.00717.53
8.1.50.0030.00617.37
8.1.40.0080.00017.47
8.1.30.0000.00917.40
8.1.20.0040.00417.52
8.1.10.0080.00017.41
8.1.00.0050.00217.36
8.0.300.0040.00419.56
8.0.290.0000.00816.63
8.0.280.0080.00018.30
8.0.270.0070.00017.21
8.0.260.0030.00317.09
8.0.250.0030.00316.82
8.0.240.0000.00716.76
8.0.230.0000.00716.86
8.0.220.0070.00016.87
8.0.210.0000.00916.74
8.0.200.0020.00516.78
8.0.190.0050.00316.76
8.0.180.0000.00916.71
8.0.170.0050.00316.90
8.0.160.0070.00016.81
8.0.150.0070.00016.77
8.0.140.0040.00416.85
8.0.130.0000.00613.34
8.0.120.0040.00416.82
8.0.110.0050.00316.84
8.0.100.0050.00216.71
8.0.90.0000.00716.81
8.0.80.0030.01216.83
8.0.70.0000.00716.85
8.0.60.0000.00816.71
8.0.50.0070.00016.62
8.0.30.0100.00817.06
8.0.20.0070.01217.40
8.0.10.0080.00016.93
8.0.00.0070.01116.62
7.4.330.0030.00315.08
7.4.320.0000.00716.56
7.4.300.0040.00416.59
7.4.290.0070.00016.34
7.4.280.0030.00616.44
7.4.270.0030.00316.46
7.4.260.0000.00716.45
7.4.250.0000.00816.51
7.4.240.0070.00016.44
7.4.230.0070.00016.61
7.4.220.0030.01416.54
7.4.210.0030.01016.46
7.4.200.0000.00716.30
7.4.160.0060.00916.43
7.4.150.0140.00517.40
7.4.140.0100.01217.86
7.4.130.0120.00616.49
7.4.120.0110.01016.45
7.4.110.0100.00716.34
7.4.100.0130.00316.33
7.4.90.0160.00316.54
7.4.80.0110.00719.39
7.4.70.0100.00616.44
7.4.60.0150.00016.62
7.4.50.0040.00416.32
7.4.40.0000.01716.59
7.4.30.0060.01016.07
7.4.00.0090.00614.75
7.3.330.0000.00512.97
7.3.320.0050.00012.93
7.3.310.0070.00016.23
7.3.300.0000.00716.12
7.3.290.0070.00816.13
7.3.280.0100.01016.15
7.3.270.0080.00917.40
7.3.260.0120.00616.14
7.3.250.0110.00816.25
7.3.240.0090.01316.44
7.3.230.0110.01116.39
7.3.210.0180.00016.18
7.3.200.0120.00916.44
7.3.190.0090.00616.36
7.3.180.0040.01216.05
7.3.170.0030.01416.27
7.3.160.0120.00816.16
7.2.330.0140.00316.53
7.2.320.0100.01016.52
7.2.310.0040.01416.52
7.2.300.0100.00616.55
7.2.290.0060.00916.59
7.2.00.0000.01619.39
7.1.100.0040.00718.15
7.1.70.0000.00816.97
7.1.60.0060.01619.42
7.1.50.0120.00916.82
7.1.00.0030.07722.40
7.0.200.0360.00314.34
7.0.60.0000.08020.02
7.0.50.0030.08717.84
7.0.40.0100.08020.35
7.0.30.0270.07720.20
7.0.20.0230.07320.16
7.0.10.0000.05020.18
7.0.00.0030.08320.16
5.6.280.0030.04720.92
5.6.210.0100.06720.54
5.6.200.0030.04718.18
5.6.190.0100.03720.35
5.6.180.0500.06320.48
5.6.170.0330.06020.47
5.6.160.0000.04320.40
5.6.150.0100.04318.23
5.6.140.0100.08018.21
5.6.130.0100.08018.21
5.6.120.0070.06320.99
5.6.110.0100.05721.11
5.6.100.0200.07321.02
5.6.90.0130.07721.13
5.6.80.0030.08020.53
5.5.350.0030.07320.43
5.5.340.0100.07717.96
5.5.330.0100.05720.19
5.5.320.0000.04020.51
5.5.310.0300.07720.24
5.5.300.0170.07317.97
5.5.290.0130.07017.89
5.5.280.0100.05020.85
5.5.270.0070.08320.95
5.5.260.0130.08020.78
5.5.250.0000.05020.54
5.5.240.0100.07020.18
5.4.450.0130.06019.61
5.4.440.0600.06319.62
5.4.430.1070.06719.32
5.4.420.0800.04719.57
5.4.410.0830.04719.49
5.4.400.0730.05719.11
5.4.390.0870.05719.30
5.4.380.0800.05319.15
5.4.370.0970.05019.28
5.4.360.0730.06319.28
5.4.350.1000.06019.22
5.4.340.0600.05319.19
5.4.320.0900.04719.29
5.4.310.0730.05319.09
5.4.300.0670.05319.30
5.4.290.0970.06719.04
5.4.280.1100.08019.22
5.4.270.0870.05319.14
5.4.260.0770.05719.12
5.4.250.0800.04719.29
5.4.240.0700.04718.94
5.4.230.0770.05318.98
5.4.220.0830.06018.82
5.4.210.1000.05018.96
5.4.200.0930.05716.73
5.4.190.0700.06019.02
5.4.180.0830.05719.25
5.4.170.0870.06318.93
5.4.160.0730.06719.23
5.4.150.0900.05019.08
5.4.140.1130.07316.34
5.4.130.0970.06316.43
5.4.120.0970.07316.44
5.4.110.0870.05316.28
5.4.100.0830.06316.21
5.4.90.1000.05316.42
5.4.80.0730.06016.44
5.4.70.0730.04716.56
5.4.60.0800.05016.35
5.4.50.0800.05316.14
5.4.40.0770.07016.23
5.4.30.0900.06716.14
5.4.20.0630.07716.35
5.4.10.0700.05016.55
5.4.00.0800.04715.67
5.3.290.0730.06014.45
5.3.280.0800.05714.44
5.3.270.0600.06014.48
5.3.260.0670.05314.40
5.3.250.0730.05714.59
5.3.240.0700.06014.60
5.3.230.0730.05314.43
5.3.220.0830.05714.45
5.3.210.0870.07714.45
5.3.200.0770.07714.41
5.3.190.0700.08014.52
5.3.180.0870.09014.66
5.3.170.0930.07314.65
5.3.160.0900.05314.41
5.3.150.0700.06314.40
5.3.140.0930.05714.54
5.3.130.1170.05714.39
5.3.120.0730.07014.38
5.3.110.1070.06314.34
5.3.100.1030.05714.02
5.3.90.0800.06713.89
5.3.80.0930.05013.86
5.3.70.0830.06313.81
5.3.60.0700.07013.84
5.3.50.0700.06313.96
5.3.40.0770.04313.79
5.3.30.0830.05313.93
5.3.20.1000.06713.57
5.3.10.0900.06713.48
5.3.00.0870.05313.63
5.2.170.0500.04711.10
5.2.160.0600.04311.09
5.2.150.0670.05311.09
5.2.140.0600.04311.12
5.2.130.0600.04311.12
5.2.120.0700.03710.94
5.2.110.0600.04310.96
5.2.100.0770.04710.99
5.2.90.0700.03311.04
5.2.80.0670.03710.98
5.2.70.0770.04011.08
5.2.60.0500.04011.13
5.2.50.0530.04010.86
5.2.40.0500.05010.95
5.2.30.0470.05711.05
5.2.20.0570.03011.11
5.2.10.0430.04011.01
5.2.00.0430.05310.59
5.1.60.0670.0339.96
5.1.50.0370.0409.91
5.1.40.0500.0279.87
5.1.30.0500.04710.24
5.1.20.0800.04710.43
5.1.10.0430.0379.95
5.1.00.0430.0379.98
5.0.50.0300.0408.63
5.0.40.0270.0438.43
5.0.30.0270.0478.23
5.0.20.0300.0308.27
5.0.10.0330.0378.22
5.0.00.0230.0538.03
4.4.90.0370.0275.80
4.4.80.0300.0275.76
4.4.70.0200.0275.78
4.4.60.0230.0375.82
4.4.50.0170.0275.84
4.4.40.0200.0405.81
4.4.30.0030.0275.80
4.4.20.0070.0305.81
4.4.10.0030.0275.88
4.4.00.0030.0375.81
4.3.110.0030.0305.75
4.3.100.0030.0305.75
4.3.90.0030.0275.78
4.3.80.0100.0305.73
4.3.70.0270.0205.66
4.3.60.0200.0275.78
4.3.50.0300.0305.78
4.3.40.0130.0475.71
4.3.30.0170.0304.52
4.3.20.0170.0304.41
4.3.10.0100.0334.36
4.3.00.0000.0237.21

preferences:
66.18 ms | 401 KiB | 5 Q