3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * var hash = System.Security.Cryptography.SHA256.Create(); * hash.ComputeHash(System.Text.Encoding.Unicode.GetBytes(secretKey + guid)); * aCookie.Values[""signatur""] = Convert.ToBase64String(hash.Hash); */ // Make sure we have the same encoding on both strings. $guid = mb_convert_encoding('36a75830-be27-e111-a4dc-0050568b2fc3', 'UTF-8'); $secret = mb_convert_encoding('R3loadN3tcompanyIda', 'UTF-8'); // Generate raw/byte hash. $hash = hash('sha256', $secret . $guid, TRUE); // Get the base64 value. $signature = base64_encode($hash); print 'Hash: ' . $hash; print "\n"; print 'Signature: ' . $signature;

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.0090.00618.56
8.3.50.0070.01022.05
8.3.40.0140.00318.68
8.3.30.0140.00018.35
8.3.20.0040.00418.60
8.3.10.0090.00020.94
8.3.00.0070.00023.53
8.2.180.0160.00616.50
8.2.170.0000.01422.96
8.2.160.0070.00720.47
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00020.99
8.2.110.0070.00320.46
8.2.100.0060.00617.91
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0050.00317.89
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0000.00819.97
8.2.20.0040.00417.53
8.2.10.0000.00717.70
8.2.00.0050.00217.75
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00322.55
8.1.230.0090.00321.02
8.1.220.0040.00418.77
8.1.210.0080.00019.03
8.1.200.0180.00817.00
8.1.190.0030.00617.51
8.1.180.0040.00418.10
8.1.170.0030.00618.48
8.1.160.0040.00418.88
8.1.150.0070.00018.55
8.1.140.0060.00317.49
8.1.130.0000.00717.82
8.1.120.0030.00317.46
8.1.110.0000.00817.52
8.1.100.0030.00517.35
8.1.90.0000.00717.30
8.1.80.0070.00017.36
8.1.70.0030.00317.41
8.1.60.0000.00817.52
8.1.50.0000.00817.51
8.1.40.0040.00417.50
8.1.30.0030.00617.55
8.1.20.0040.00417.50
8.1.10.0040.00417.61
8.1.00.0040.00417.47
8.0.300.0070.00020.04
8.0.290.0090.00016.75
8.0.280.0000.00718.50
8.0.270.0030.00317.30
8.0.260.0040.00416.89
8.0.250.0050.00217.05
8.0.240.0000.00817.01
8.0.230.0030.00317.01
8.0.220.0070.00017.00
8.0.210.0040.00416.84
8.0.200.0030.00317.02
8.0.190.0000.00716.95
8.0.180.0080.00416.95
8.0.170.0030.00316.93
8.0.160.0070.00016.86
8.0.150.0040.00416.84
8.0.140.0000.00716.93
8.0.130.0030.00313.43
8.0.120.0040.00416.95
8.0.110.0000.00716.95
8.0.100.0050.00316.83
8.0.90.0000.00717.02
8.0.80.0030.01316.94
8.0.70.0000.00816.82
8.0.60.0000.00916.96
8.0.50.0050.00516.96
8.0.30.0110.00616.90
8.0.20.0080.01017.40
8.0.10.0050.00317.02
8.0.00.0150.00616.71
7.4.330.0060.00014.76
7.4.320.0000.00616.61
7.4.300.0000.00616.61
7.4.290.0030.00316.62
7.4.280.0080.00316.52
7.4.270.0030.00316.57
7.4.260.0000.00613.22
7.4.250.0040.00416.50
7.4.240.0000.00716.51
7.4.230.0030.00316.57
7.4.220.0120.00616.59
7.4.210.0050.01016.63
7.4.200.0030.00316.50
7.4.190.0040.00416.73
7.4.160.0110.00516.54
7.4.150.0090.00917.40
7.4.140.0070.01417.86
7.4.130.0090.00816.43
7.4.120.0120.00516.51
7.4.110.0090.00916.49
7.4.100.0070.01016.43
7.4.90.0150.00416.61
7.4.80.0130.00319.37
7.4.70.0060.01216.57
7.4.60.0090.00916.47
7.4.50.0080.00016.24
7.4.40.0040.01422.27
7.4.30.0100.01016.59
7.4.00.0070.00714.67
7.3.330.0020.00213.05
7.3.320.0000.00512.98
7.3.310.0030.00316.36
7.3.300.0000.00616.28
7.3.290.0080.01116.23
7.3.280.0070.00816.29
7.3.270.0060.01017.40
7.3.260.0090.00818.24
7.3.250.0120.00816.26
7.3.240.0100.01016.32
7.3.230.0140.00316.52
7.3.210.0160.00416.29
7.3.200.0090.00919.39
7.3.190.0060.01116.58
7.3.180.0070.01016.63
7.3.170.0090.00916.28
7.3.160.0090.00616.33
7.3.120.0080.00814.92
7.2.330.0120.00616.71
7.2.320.0060.01116.68
7.2.310.0130.01016.55
7.2.300.0160.00616.46
7.2.290.0050.01116.43
7.2.00.0120.00419.48
7.1.100.0030.00817.99
7.1.70.0000.00717.18
7.1.60.0100.01619.40
7.1.50.0000.01816.98
7.1.00.0000.05322.32
7.0.200.0290.00016.68
7.0.140.0030.07021.95
7.0.60.0100.07019.84
7.0.50.0130.05317.86
7.0.40.0130.03317.73
7.0.30.0070.07317.67
7.0.20.0100.06317.79
7.0.10.0070.07317.75
7.0.00.0000.08717.73
5.6.280.0130.06320.77
5.6.210.0130.07320.62
5.6.200.0100.04718.18
5.6.190.0070.08318.21
5.6.180.0070.08018.13
5.6.170.0070.08018.13
5.6.160.0100.07018.08
5.6.150.0070.05318.18
5.6.140.0030.04718.11
5.6.130.0070.04318.11
5.6.120.0000.04318.11
5.6.110.0000.04318.11
5.6.100.0030.04018.17
5.6.90.0030.04018.16
5.6.80.0000.04317.50
5.6.70.0030.03717.47
5.6.60.0000.04017.59
5.6.50.0030.03717.50
5.6.40.0070.03317.54
5.6.30.0030.03717.58
5.6.20.0100.03017.50
5.6.10.0070.03717.48
5.6.00.0070.04317.50
5.5.350.0370.07020.41
5.5.340.0170.07017.92
5.5.330.0030.04717.95
5.5.320.0070.08017.91
5.5.310.0100.06018.01
5.5.300.0030.04017.90
5.5.290.0000.04317.91
5.5.280.0000.04317.96
5.5.270.0070.03717.87
5.5.260.0030.04017.91
5.5.250.0000.04017.83
5.5.240.0130.03017.40
5.5.230.0030.03717.30
5.5.220.0100.03017.38
5.5.210.0030.03717.28
5.5.200.0000.04017.26
5.5.190.0000.04017.26
5.5.180.0000.04017.33
5.5.160.0000.04317.33
5.5.150.0070.04017.26
5.5.140.0030.03717.33
5.5.130.0000.04017.26
5.5.120.0030.04017.27
5.5.110.0000.04017.32
5.5.100.0070.03717.26
5.5.90.0100.04717.17
5.5.80.0070.07717.13
5.5.70.0100.07317.20
5.5.60.0030.07717.22
5.5.50.0000.07717.18
5.5.40.0130.05017.20
5.5.30.0100.06017.10
5.5.20.0030.08017.24
5.5.10.0000.05317.25
5.5.00.0100.07017.11
5.4.450.0170.04019.31
5.4.440.0000.04319.29
5.4.430.0000.04319.27
5.4.420.0000.04319.39
5.4.410.0070.03319.18
5.4.400.0030.03719.12
5.4.390.0100.03018.89
5.4.380.0030.04019.12
5.4.370.0100.03718.98
5.4.360.0170.03718.95
5.4.350.0030.03718.96
5.4.340.0000.04318.99
5.4.320.0070.05018.98
5.4.310.0030.03719.09
5.4.300.0100.03019.00
5.4.290.0070.03719.20
5.4.280.0100.03019.09
5.4.270.0070.04319.03
5.4.260.0070.03318.98
5.4.250.0000.04018.98
5.4.240.0070.07319.11
5.4.230.0130.07018.97
5.4.220.0070.07718.98
5.4.210.0130.05718.98
5.4.200.0130.05719.11
5.4.190.0130.05319.11
5.4.180.0070.05019.10
5.4.170.0130.07319.11
5.4.160.0130.06018.87
5.4.150.0000.07719.09
5.4.140.0100.07316.27
5.4.130.0030.04716.33
5.4.120.0130.04316.28
5.4.110.0070.07016.37
5.4.100.0070.08016.37
5.4.90.0070.07016.41
5.4.80.0070.05716.34
5.4.70.0100.05716.39
5.4.60.0000.04016.23
5.4.50.0130.04016.25
5.4.40.0070.05716.41
5.4.30.0070.05016.48
5.4.20.0030.06016.14
5.4.10.0070.04316.38
5.4.00.0070.07015.98
5.3.290.0070.03314.75
5.3.280.0100.08014.56
5.3.270.0100.07314.69
5.3.260.0070.07714.42
5.3.250.0100.04714.43
5.3.240.0070.08014.46
5.3.230.0100.07714.51
5.3.220.0030.08014.52
5.3.210.0070.03714.39
5.3.200.0030.05014.50
5.3.190.0070.07014.52
5.3.180.0100.05714.39
5.3.170.0070.05714.52
5.3.160.0070.03314.41
5.3.150.0030.06014.55
5.3.140.0070.07014.52
5.3.130.0170.06014.50
5.3.120.0070.05014.32
5.3.110.0070.05014.48
5.3.100.0070.05314.00
5.3.90.0070.07713.87
5.3.80.0070.08014.00
5.3.70.0030.06313.97
5.3.60.0030.07713.91
5.3.50.0070.07013.80
5.3.40.0030.08013.86
5.3.30.0000.06713.88
5.3.20.0030.06713.61
5.3.10.0170.03313.73
5.3.00.0100.06713.39
5.2.170.0130.05311.07
5.2.160.0070.05711.11
5.2.150.0070.03711.06
5.2.140.0030.06311.14
5.2.130.0070.05311.09
5.2.120.0030.06011.08
5.2.110.0070.05710.88
5.2.100.0030.03311.09
5.2.90.0000.03011.07
5.2.80.0030.05011.05
5.2.70.0030.03310.87
5.2.60.0000.03310.95
5.2.50.0070.03010.84
5.2.40.0070.03710.99
5.2.30.0100.06010.79
5.2.20.0000.03010.95
5.2.10.0200.04310.70
5.2.00.0070.05710.61
5.1.60.0030.0309.97
5.1.50.0070.0509.92
5.1.40.0030.0339.98
5.1.30.0000.05710.34
5.1.20.0100.05010.19
5.1.10.0030.05310.03
5.1.00.0030.04710.11
5.0.50.0130.0378.47
5.0.40.0000.0478.37
5.0.30.0070.0608.20
5.0.20.0000.0308.18
5.0.10.0130.0278.22
5.0.00.0000.0708.24
4.4.90.0000.0209.07
4.4.80.0070.0339.07
4.4.70.0070.0237.80
4.4.60.0030.0277.80
4.4.50.0000.0277.80
4.4.40.0000.0607.80
4.4.30.0030.0307.80
4.4.20.0000.0377.80
4.4.10.0000.0307.80
4.4.00.0030.0407.80
4.3.110.0000.0337.80
4.3.100.0000.0237.80
4.3.90.0070.0337.80
4.3.80.0000.0577.80
4.3.70.0030.0237.80
4.3.60.0000.0307.80
4.3.50.0030.0237.80
4.3.40.0030.0477.80
4.3.30.0000.0407.80
4.3.20.0030.0277.80
4.3.10.0000.0277.80
4.3.00.0030.0337.80

preferences:
51.19 ms | 400 KiB | 5 Q