3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is stored in the file: $storedhash = hash("sha256", "salt" + "password"); // Logging in: $password = "password"; if (hash("sha256", "salt" + $password) === $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.60.0150.00616.75
8.3.50.0110.00716.33
8.3.40.0110.01119.02
8.3.30.0100.00318.89
8.3.20.0040.00420.32
8.3.10.0050.00323.52
8.3.00.0080.00317.80
8.2.180.0130.00616.50
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.25
8.2.110.0000.00920.52
8.2.100.0070.00417.91
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00518.04
8.2.50.0060.00618.10
8.2.40.0050.00321.23
8.2.30.0080.00017.88
8.2.20.0050.00217.74
8.2.10.0000.00818.06
8.2.00.0040.00418.00
8.1.280.0110.00625.92
8.1.270.0070.00022.07
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00321.18
8.1.230.0060.00617.83
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0000.00721.87
8.1.150.0000.00718.77
8.1.140.0080.00017.31
8.1.130.0040.00417.43
8.1.120.0000.00717.21
8.1.110.0030.00317.30
8.1.100.0030.00517.29
8.1.90.0000.00717.32
8.1.80.0030.00617.24
8.1.70.0000.00717.27
8.1.60.0000.00917.34
8.1.50.0030.00517.36
8.1.40.0040.00417.38
8.1.30.0030.00617.48
8.1.20.0070.00017.62
8.1.10.0000.00717.42
8.1.00.0000.00817.46
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.30
8.0.270.0000.00717.14
8.0.260.0060.00017.11
8.0.250.0050.00216.95
8.0.240.0000.00716.93
8.0.230.0040.00416.92
8.0.220.0000.00716.89
8.0.210.0040.00416.93
8.0.200.0060.00016.95
8.0.190.0020.00516.84
8.0.180.0040.00416.75
8.0.170.0000.00816.78
8.0.160.0040.00416.89
8.0.150.0000.00716.86
8.0.140.0040.00416.86
8.0.130.0070.00013.34
8.0.120.0070.00016.87
8.0.110.0040.00416.96
8.0.100.0000.00716.69
8.0.90.0000.00816.68
8.0.80.0100.00716.80
8.0.70.0040.00416.77
8.0.60.0000.00716.79
8.0.50.0040.00416.74
8.0.30.0080.01017.00
8.0.20.0100.01117.40
8.0.10.0000.00716.97
8.0.00.0100.00816.74
7.4.330.0060.00015.08
7.4.320.0030.00316.63
7.4.300.0000.00616.59
7.4.290.0050.00316.41
7.4.280.0050.00216.59
7.4.270.0030.00316.57
7.4.260.0000.01016.59
7.4.250.0000.00816.41
7.4.240.0040.00416.56
7.4.230.0030.00316.61
7.4.220.0070.01116.68
7.4.210.0050.01016.54
7.4.200.0030.00316.34
7.4.160.0130.00716.57
7.4.150.0180.00617.40
7.4.140.0120.01017.86
7.4.130.0130.00616.48
7.4.120.0120.00616.60
7.4.110.0100.00716.57
7.4.100.0090.00916.51
7.4.90.0030.01316.59
7.4.80.0110.01319.39
7.4.70.0070.01016.66
7.4.60.0030.01316.48
7.4.50.0020.00216.50
7.4.40.0090.00916.34
7.4.30.0100.00816.48
7.4.00.0050.01114.89
7.3.330.0020.00213.32
7.3.320.0000.00613.09
7.3.310.0000.00716.39
7.3.300.0000.00716.19
7.3.290.0030.01216.36
7.3.280.0100.00616.33
7.3.270.0180.00517.40
7.3.260.0150.00316.30
7.3.250.0080.01116.35
7.3.240.0130.00516.41
7.3.230.0060.00916.39
7.3.210.0080.00816.33
7.3.200.0140.00316.44
7.3.190.0090.00916.25
7.3.180.0060.00916.41
7.3.170.0100.01216.59
7.3.160.0070.01616.35
7.3.120.0090.00914.82
7.3.110.0070.01014.91
7.3.100.0030.01414.98
7.3.90.0100.00714.76
7.3.80.0030.00614.70
7.3.70.0030.01014.93
7.3.60.0100.00014.72
7.3.50.0040.01514.71
7.3.40.0120.00314.62
7.3.30.0040.00714.87
7.3.20.0070.01016.62
7.3.10.0040.00516.55
7.3.00.0030.00616.47
7.2.330.0030.01516.55
7.2.320.0110.00716.61
7.2.310.0100.00716.56
7.2.300.0060.00916.48
7.2.290.0090.00916.63
7.2.250.0070.01114.93
7.2.240.0130.01014.96
7.2.230.0090.00915.03
7.2.220.0070.00714.67
7.2.210.0130.00314.89
7.2.200.0000.01014.93
7.2.190.0060.00915.01
7.2.180.0130.00314.98
7.2.170.0030.01015.11
7.2.130.0050.00516.61
7.2.120.0030.00916.66
7.2.110.0070.00716.24
7.2.100.0100.00616.57
7.2.90.0090.00616.30
7.2.80.0000.01716.70
7.2.70.0000.01116.77
7.2.60.0060.00816.60
7.2.50.0040.00816.70
7.2.40.0000.01516.45
7.2.30.0060.00316.63
7.2.20.0070.00716.63
7.2.10.0040.01116.75
7.2.00.0040.00918.01
7.1.330.0040.01115.75
7.1.320.0030.00715.79
7.1.310.0030.00915.66
7.1.300.0110.00315.56
7.1.290.0080.00415.89
7.1.280.0110.00715.80
7.1.270.0000.01315.92
7.1.260.0040.00415.87
7.1.250.0120.00315.24
7.1.200.0090.00615.79
7.1.100.0030.00918.41
7.1.70.0000.00917.08
7.1.60.0110.00019.27
7.1.50.0030.00916.99
7.1.00.0130.06322.45
7.0.200.0250.00014.81
7.0.60.0100.08319.88
7.0.50.0070.07717.75
7.0.40.0070.04719.98
7.0.30.0270.04720.16
7.0.20.0430.05020.04
7.0.10.0170.06020.09
7.0.00.0070.05019.99
5.6.210.0000.09020.50
5.6.200.0070.08718.16
5.6.190.0070.04320.44
5.6.180.0230.04020.61
5.6.170.0330.07020.35
5.6.160.0070.04020.46
5.6.150.0100.07718.18
5.6.140.0100.08018.20
5.6.130.0130.07318.18
5.6.120.0130.07720.98
5.6.110.0000.09020.97
5.6.100.0100.08321.10
5.6.90.0130.08021.06
5.6.80.0070.08720.37
5.6.70.4570.03720.27
5.5.350.0100.08020.40
5.5.340.0030.04018.06
5.5.330.0030.04320.40
5.5.320.0270.05020.21
5.5.310.0270.08720.31
5.5.300.0100.07018.00
5.5.290.0170.03317.95
5.5.280.0030.04020.68
5.5.270.0070.05320.86
5.5.260.0170.07320.92
5.5.250.0000.04320.53
5.5.240.0230.06720.12
5.4.450.0700.05719.11
5.4.440.0730.05719.41
5.4.430.0800.06319.63
5.4.420.0830.04319.46
5.4.410.0770.05319.45
5.4.400.0830.04319.29
5.4.390.0830.04719.11
5.4.380.0570.06019.16
5.4.370.0570.06319.16
5.4.360.0670.05319.13
5.4.350.0570.05319.09
5.4.340.0630.06019.08
5.4.320.0700.05319.16
5.4.310.0670.06019.25
5.4.300.0830.04019.29
5.4.290.0630.05019.20
5.4.280.0770.06718.81
5.4.270.0700.04719.29
5.4.260.0630.05718.77
5.4.250.0730.05719.14
5.4.240.0600.05319.07
5.4.230.0830.05318.94
5.4.220.0630.05719.24
5.4.210.0600.06319.14
5.4.200.0670.05318.98
5.4.190.0670.05019.30
5.4.180.0930.06318.90
5.4.170.0830.04718.77
5.4.160.0830.04719.18
5.4.150.0730.06019.20
5.4.140.0670.05316.32
5.4.130.0600.05016.15
5.4.120.0600.05716.29
5.4.110.0670.05316.44
5.4.100.1000.04716.51
5.4.90.0630.04716.62
5.4.80.0570.05316.35
5.4.70.0200.02716.48
5.4.60.0370.06016.37
5.4.50.0030.07016.36
5.4.40.0030.07016.16
5.4.30.0030.06716.27
5.4.20.0430.05016.28

preferences:
68.97 ms | 400 KiB | 5 Q