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('R3loadN3tcompanyIda36a75830-be27-e111-a4dc-0050568b2fc3', 'UTF-8'); // Generate raw/byte hash. $hash = hash('sha256', $secret, TRUE); // Get the base64 value. $signature = base64_encode($hash); 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.0070.00718.31
8.3.50.0100.00921.89
8.3.40.0140.00718.54
8.3.30.0180.00318.89
8.3.20.0070.01020.16
8.3.10.0040.01121.92
8.3.00.0030.00622.45
8.2.180.0140.00416.50
8.2.170.0120.00322.96
8.2.160.0070.00720.89
8.2.150.0060.00324.18
8.2.140.0090.00924.66
8.2.130.0030.00626.16
8.2.120.0040.00419.50
8.2.110.0060.00322.20
8.2.100.0090.00317.72
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0070.00018.03
8.2.30.0040.00418.06
8.2.20.0070.00017.64
8.2.10.0000.00717.68
8.2.00.0000.00717.68
8.1.280.0060.00925.92
8.1.270.0070.00723.87
8.1.260.0150.00326.35
8.1.250.0100.00728.09
8.1.240.0090.00023.87
8.1.230.0090.00319.09
8.1.220.0000.00817.75
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.50
8.1.180.0040.00418.10
8.1.170.0030.00618.53
8.1.160.0080.00021.93
8.1.150.0050.00518.55
8.1.140.0040.00417.45
8.1.130.0070.00017.82
8.1.120.0070.00017.38
8.1.110.0110.00017.42
8.1.100.0070.00017.46
8.1.90.0000.00717.37
8.1.80.0000.00717.36
8.1.70.0000.00817.36
8.1.60.0000.00817.60
8.1.50.0000.00817.42
8.1.40.0000.00817.46
8.1.30.0000.00817.57
8.1.20.0060.00317.63
8.1.10.0070.00017.55
8.1.00.0000.00817.40
8.0.300.0030.00618.77
8.0.290.0040.00417.18
8.0.280.0070.00018.54
8.0.270.0040.00417.22
8.0.260.0000.00616.83
8.0.250.0050.00216.93
8.0.240.0000.01017.01
8.0.230.0000.00716.93
8.0.220.0000.00716.95
8.0.210.0060.00016.91
8.0.200.0030.00316.90
8.0.190.0080.00017.01
8.0.180.0070.00017.02
8.0.170.0040.00416.93
8.0.160.0050.00317.08
8.0.150.0000.00716.90
8.0.140.0050.00216.79
8.0.130.0000.00613.37
8.0.120.0040.00416.83
8.0.110.0020.00516.92
8.0.100.0070.00016.93
8.0.90.0000.00816.83
8.0.80.0030.01116.80
8.0.70.0030.00516.74
8.0.60.0000.00716.76
8.0.50.0000.00717.00
8.0.30.0100.01017.07
8.0.20.0100.00817.40
8.0.10.0040.00416.95
8.0.00.0060.01116.77
7.4.330.0040.00215.20
7.4.320.0000.00716.52
7.4.300.0000.00816.51
7.4.290.0000.00716.40
7.4.280.0070.00016.59
7.4.270.0070.00016.63
7.4.260.0040.00416.46
7.4.250.0020.00516.60
7.4.240.0030.00416.48
7.4.230.0030.00316.60
7.4.220.0100.01016.52
7.4.210.0090.00916.52
7.4.200.0030.00316.46
7.4.190.0040.00416.75
7.4.160.0040.01116.54
7.4.150.0090.00917.40
7.4.140.0050.01317.86
7.4.130.0130.00516.51
7.4.120.0120.00816.46
7.4.110.0090.00916.55
7.4.100.0090.00916.46
7.4.90.0060.01616.47
7.4.80.0090.00916.48
7.4.70.0090.00916.46
7.4.60.0090.01116.37
7.4.50.0000.00516.46
7.4.40.0030.00922.77
7.4.30.0100.00616.60
7.4.00.0120.00414.99
7.3.330.0030.00313.19
7.3.320.0020.00213.25
7.3.310.0000.00716.31
7.3.300.0000.00716.27
7.3.290.0100.00416.32
7.3.280.0080.01116.22
7.3.270.0100.00717.40
7.3.260.0140.00316.50
7.3.250.0080.00916.40
7.3.240.0120.01116.41
7.3.230.0090.00916.39
7.3.210.0100.01316.47
7.3.200.0090.01519.39
7.3.190.0120.00916.59
7.3.180.0070.01016.21
7.3.170.0080.00816.33
7.3.160.0170.00016.37
7.3.120.0060.00614.84
7.3.10.0050.00516.36
7.3.00.0000.01816.53
7.2.330.0150.00316.63
7.2.320.0090.01216.61
7.2.310.0080.01416.43
7.2.300.0070.01116.83
7.2.290.0120.00416.69
7.2.130.0030.01216.95
7.2.120.0110.00416.98
7.2.110.0090.00316.95
7.2.100.0110.00416.87
7.2.90.0070.01017.02
7.2.80.0100.00616.74
7.2.70.0000.01217.14
7.2.60.0060.00916.86
7.2.50.0070.00716.99
7.2.40.0030.01017.00
7.2.30.0060.01016.88
7.2.20.0060.00916.61
7.2.10.0060.00916.55
7.2.00.0050.01018.15
7.1.250.0090.00015.71
7.1.100.0040.01118.20
7.1.70.0050.00217.32
7.1.60.0060.01819.82
7.1.50.0100.01316.89
7.1.00.0170.08322.27
7.0.200.0040.00416.86
7.0.140.0000.07722.02
7.0.60.0030.05319.85
7.0.50.0070.08017.89
7.0.40.0070.05320.14
7.0.30.0230.04320.34
7.0.20.0200.08020.00
7.0.10.0030.04320.01
7.0.00.0000.09320.25
5.6.280.0070.07020.77
5.6.210.0070.06720.62
5.6.200.0000.05018.16
5.6.190.0070.08020.39
5.6.180.0430.04020.56
5.6.170.0300.06720.38
5.6.160.0070.08320.44
5.6.150.0070.08318.21
5.6.140.0070.08018.09
5.6.130.0000.07018.20
5.6.120.0070.08021.05
5.6.110.0070.09021.13
5.6.100.0070.03720.98
5.6.90.0030.04021.00
5.6.80.0100.07020.37
5.5.350.0270.06720.31
5.5.340.0070.08017.99
5.5.330.0070.08320.38
5.5.320.0030.06720.32
5.5.310.0370.07720.20
5.5.300.0030.04017.95
5.5.290.0070.06318.02
5.5.280.0030.04020.75
5.5.270.0100.06320.64
5.5.260.0130.04720.75
5.5.250.0000.04320.71
5.5.240.0170.08020.27
5.4.450.0030.08719.41
5.4.440.0070.08019.13
5.4.430.0070.07019.11
5.4.420.0030.08319.57
5.4.410.0000.05719.29
5.4.400.0030.06719.13
5.4.390.0070.06019.25
5.4.380.0100.06319.09
5.4.370.0000.04318.88
5.4.360.0070.04718.80
5.4.350.0000.06718.93
5.4.340.0030.05019.15
5.4.320.0030.08319.19
5.4.310.0100.06719.21
5.4.300.0000.07019.15
5.4.290.0000.06318.80
5.4.280.0030.05719.22
5.4.270.0030.05718.91
5.4.260.0130.07018.93
5.4.250.0070.06719.23
5.4.240.0000.05019.07
5.4.230.0070.06719.07
5.4.220.0000.07718.91
5.4.210.0000.04319.24
5.4.200.0000.08018.78
5.4.190.0000.05319.07
5.4.180.0030.06719.12
5.4.170.0030.07318.80
5.4.160.0030.07319.11
5.4.150.0130.03719.19
5.4.140.0030.05316.18
5.4.130.0030.07016.32
5.4.120.0030.07016.15
5.4.110.0070.06716.41
5.4.100.0030.03316.48
5.4.90.0070.06316.43
5.4.80.0030.06716.38
5.4.70.0030.05316.48
5.4.60.0000.04016.19
5.4.50.0030.05016.21
5.4.40.0030.03316.45
5.4.30.0000.07716.39
5.4.20.0030.04016.38
5.4.10.0000.07016.43
5.4.00.0100.07015.70
5.3.290.0030.04714.60
5.3.280.0000.07714.64
5.3.270.0030.08014.46
5.3.260.0070.06314.45
5.3.250.0030.03714.55
5.3.240.0030.04314.55
5.3.230.0030.06714.54
5.3.220.0070.05314.52
5.3.210.0030.05714.45
5.3.200.0070.06314.47
5.3.190.0100.05314.40
5.3.180.0030.07314.43
5.3.170.0070.03314.39
5.3.160.0030.07714.40
5.3.150.0030.06314.43
5.3.140.0030.03314.58
5.3.130.0030.05014.39
5.3.120.0000.04714.48
5.3.110.0000.07314.42
5.3.100.0100.07013.91
5.3.90.0070.06013.91
5.3.80.0000.05313.91
5.3.70.0100.05313.91
5.3.60.0030.04713.95
5.3.50.0070.03713.91
5.3.40.0030.07713.91
5.3.30.0000.04713.91
5.3.20.0070.06313.91
5.3.10.0030.06313.91
5.3.00.0030.07013.91
5.2.170.0000.04013.91
5.2.160.0070.05713.91
5.2.150.0000.03313.91
5.2.140.0000.06713.91
5.2.130.0030.04013.91
5.2.120.0000.03713.91
5.2.110.0130.03013.91
5.2.100.0070.04013.91
5.2.90.0000.05313.91
5.2.80.0030.06313.91
5.2.70.0000.04013.91
5.2.60.0030.02713.91
5.2.50.0000.03013.91
5.2.40.0030.03313.91
5.2.30.0030.03013.91
5.2.20.0000.03713.91
5.2.10.0000.03013.91
5.2.00.0000.03013.91
5.1.60.0030.02013.91
5.1.50.0000.02313.91
5.1.40.0000.02313.91
5.1.30.0000.03313.91
5.1.20.0000.02713.91
5.1.10.0030.02313.91
5.1.00.0000.03313.91
5.0.50.0000.02013.91
5.0.40.0030.01713.91
5.0.30.0000.04313.91
5.0.20.0030.02313.91
5.0.10.0000.02313.91
5.0.00.0030.03013.91
4.4.90.0000.03713.91
4.4.80.0000.01713.91
4.4.70.0000.01313.91
4.4.60.0000.01313.91
4.4.50.0000.01313.91
4.4.40.0030.02313.91
4.4.30.0000.01713.91
4.4.20.0000.01313.91
4.4.10.0000.01713.91
4.4.00.0000.02313.91
4.3.110.0000.02313.91
4.3.100.0000.02713.91
4.3.90.0030.01313.91
4.3.80.0000.04013.91
4.3.70.0000.03313.91
4.3.60.0000.02013.91
4.3.50.0000.02313.91
4.3.40.0000.05013.91
4.3.30.0030.03313.91
4.3.20.0000.03713.91
4.3.10.0030.01713.91
4.3.00.0000.03713.91

preferences:
47.72 ms | 401 KiB | 5 Q