3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is stored in the file: $storedhash = hash("sha256", "salt" + "password"); echo $storedhash; // Logging in: $password = "passworld"; $pwdhash = hash("sha256", "salt" + $password); echo $pwdhash; if ($pwdhash === $storedhash) { echo "Successfully entered password"; } else { echo "Nofie."; }

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.40.0140.00718.68
8.3.30.0120.00618.84
8.3.20.0050.00320.07
8.3.10.0000.00823.53
8.3.00.0070.00317.80
8.2.170.0100.00322.96
8.2.160.0090.00620.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0060.00320.35
8.2.100.0120.00019.36
8.2.90.0040.00419.11
8.2.80.0080.00317.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0030.00519.20
8.2.30.0060.00318.00
8.2.20.0070.00017.75
8.2.10.0070.00017.88
8.2.00.0040.00417.91
8.1.270.0040.00422.01
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0040.00420.94
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0000.00721.96
8.1.150.0000.00718.70
8.1.140.0050.00317.39
8.1.130.0000.00717.63
8.1.120.0050.00217.28
8.1.110.0050.00217.34
8.1.100.0080.00017.39
8.1.90.0000.00717.36
8.1.80.0000.00817.23
8.1.70.0070.00017.40
8.1.60.0030.00617.39
8.1.50.0040.00417.35
8.1.40.0040.00417.46
8.1.30.0040.00417.50
8.1.20.0030.00617.63
8.1.10.0000.00817.52
8.1.00.0000.00717.46
8.0.300.0090.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0000.00817.13
8.0.260.0000.00617.29
8.0.250.0080.00016.91
8.0.240.0000.00816.95
8.0.230.0030.00316.94
8.0.220.0070.00016.91
8.0.210.0000.00716.86
8.0.200.0030.00316.93
8.0.190.0030.00616.80
8.0.180.0040.00416.93
8.0.170.0090.00016.80
8.0.160.0080.00016.98
8.0.150.0040.00416.88
8.0.140.0030.00516.75
8.0.130.0040.00413.36
8.0.120.0000.00716.78
8.0.110.0080.00016.86
8.0.100.0050.00216.87
8.0.90.0040.00416.90
8.0.80.0030.01216.79
8.0.70.0000.00716.80
8.0.60.0070.00016.79
8.0.50.0000.00716.77
8.0.30.0080.01617.23
8.0.20.0100.01117.40
8.0.10.0040.00417.07
8.0.00.0120.00716.70
7.4.330.0050.00015.08
7.4.320.0000.00616.53
7.4.300.0030.00316.52
7.4.290.0040.00416.52
7.4.280.0000.00716.64
7.4.270.0030.00316.65
7.4.260.0030.00816.57
7.4.250.0040.00416.39
7.4.240.0040.00316.57
7.4.230.0030.00316.61
7.4.220.0120.00616.55
7.4.210.0100.00716.57
7.4.200.0030.00316.49
7.4.160.0030.01316.66
7.4.150.0060.01117.40
7.4.140.0110.01017.86
7.4.130.0140.00316.54
7.4.120.0070.01116.45
7.4.110.0140.00416.41
7.4.100.0060.01316.59
7.4.90.0030.01316.70
7.4.80.0000.01819.39
7.4.70.0070.01016.66
7.4.60.0000.01516.40
7.4.50.0000.00416.54
7.4.40.0030.01416.28
7.4.30.0090.01516.43
7.4.00.0120.00315.12
7.3.330.0030.00313.13
7.3.320.0000.00513.09
7.3.310.0030.00316.29
7.3.300.0030.00316.32
7.3.290.0070.00016.24
7.3.280.0090.01016.33
7.3.270.0160.00317.40
7.3.260.0090.00916.26
7.3.250.0100.00816.41
7.3.240.0070.01016.36
7.3.230.0100.00616.42
7.3.210.0130.00316.24
7.3.200.0170.00016.28
7.3.190.0100.00716.32
7.3.180.0070.01016.29
7.3.170.0060.01016.27
7.3.160.0130.00316.39
7.2.330.0130.00416.38
7.2.320.0140.00416.58
7.2.310.0070.01016.60
7.2.300.0000.01716.44
7.2.290.0120.00616.68
7.2.60.0070.00716.70
7.2.00.0030.01019.38
7.1.200.0060.00315.58
7.1.100.0030.00918.31
7.1.70.0050.00516.92
7.1.60.0030.01719.27
7.1.50.0060.00616.95
7.1.00.0030.07322.43
7.0.200.0270.00714.48
7.0.60.0070.04320.02
7.0.50.0100.04017.88
7.0.40.0030.04320.30
7.0.30.0230.04320.01
7.0.20.0370.06720.18
7.0.10.0270.04320.14
7.0.00.0100.07320.00
5.6.280.0100.03720.99
5.6.210.0030.08320.46
5.6.200.0100.07718.08
5.6.190.0200.07720.56
5.6.180.0270.08020.63
5.6.170.0330.04720.45
5.6.160.0100.07720.37
5.6.150.0070.05018.16
5.6.140.0130.07318.12
5.6.130.0000.08718.21
5.6.120.0100.05721.12
5.6.110.0100.05020.95
5.6.100.0030.09021.11
5.6.90.0130.07321.12
5.6.80.0230.07320.34
5.6.70.4500.03720.47
5.5.350.0100.07720.36
5.5.340.0130.07717.98
5.5.330.0100.08020.13
5.5.320.0400.04720.32
5.5.310.0300.05320.51
5.5.300.0070.05317.96
5.5.290.0130.07718.02
5.5.280.0100.08320.80
5.5.270.0100.06320.71
5.5.260.0230.06320.76
5.5.250.0130.06720.57
5.5.240.1930.04320.16
5.4.450.0770.05319.49
5.4.440.0830.04319.54
5.4.430.0870.05719.63
5.4.420.0630.06019.51
5.4.410.0730.05719.49
5.4.400.0730.05719.11
5.4.390.0870.05319.29
5.4.380.0730.05018.97
5.4.370.0730.07019.14
5.4.360.0770.05719.11
5.4.350.0600.06019.09
5.4.340.0770.05319.20
5.4.320.0800.05019.08
5.4.310.0800.05718.91
5.4.300.0770.05719.29
5.4.290.0730.05319.30
5.4.280.0600.06019.19
5.4.270.0900.04719.29
5.4.260.0900.05319.00
5.4.250.0770.06719.14
5.4.240.0800.06719.27
5.4.230.0930.05719.14
5.4.220.1070.06319.29
5.4.210.0730.06318.98
5.4.200.0800.05018.94
5.4.190.0600.07019.12
5.4.180.1100.07319.14
5.4.170.0870.07019.21
5.4.160.0900.06719.08
5.4.150.0900.04318.75
5.4.140.0770.05316.37
5.4.130.0870.04016.26
5.4.120.0730.06016.25
5.4.110.0800.05016.20
5.4.100.0830.05316.55
5.4.90.0700.07016.50
5.4.80.0870.04016.52
5.4.70.0200.03016.41
5.4.60.0400.03716.21
5.4.50.0030.07316.39
5.4.40.0030.06016.36
5.4.30.0030.05316.16
5.4.20.0400.03316.36

preferences:
47.93 ms | 400 KiB | 5 Q