3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is stored in the file: $storedhash = hash("sha256", "salt" + "password"); echo $storedhash + "\n"; // Logging in: $password = "passworld"; $pwdhash = hash("sha256", "salt" + $password); echo $pwdhash + "\n"; 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.60.0060.00916.50
8.3.50.0110.01021.24
8.3.40.0070.01419.02
8.3.30.0180.00018.77
8.3.20.0080.00020.34
8.3.10.0030.00523.61
8.3.00.0070.00317.91
8.2.180.0150.00016.47
8.2.170.0070.00722.96
8.2.160.0100.01020.52
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0060.00322.29
8.2.100.0060.00617.63
8.2.90.0070.00019.05
8.2.80.0070.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00517.91
8.2.50.0000.00818.07
8.2.40.0090.00019.44
8.2.30.0040.00418.06
8.2.20.0040.00417.68
8.2.10.0000.00717.98
8.2.00.0000.00717.89
8.1.280.0090.00625.92
8.1.270.0080.00022.02
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.56
8.1.230.0120.00017.42
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0000.00817.10
8.1.180.0050.00218.10
8.1.170.0040.00418.59
8.1.160.0040.00421.90
8.1.150.0050.00318.81
8.1.140.0080.00017.30
8.1.130.0030.00317.50
8.1.120.0000.00717.24
8.1.110.0070.00017.33
8.1.100.0000.00717.36
8.1.90.0050.00217.23
8.1.80.0070.00017.22
8.1.70.0070.00017.33
8.1.60.0090.00017.37
8.1.50.0000.00817.36
8.1.40.0080.00017.36
8.1.30.0000.00817.62
8.1.20.0000.00717.45
8.1.10.0020.00517.43
8.1.00.0070.00017.46
8.0.300.0040.00418.84
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0040.00417.21
8.0.260.0040.00417.14
8.0.250.0040.00416.98
8.0.240.0040.00417.02
8.0.230.0030.00316.85
8.0.220.0000.00716.94
8.0.210.0030.00316.94
8.0.200.0030.00316.91
8.0.190.0050.00316.91
8.0.180.0040.00416.82
8.0.170.0000.00816.86
8.0.160.0040.00416.81
8.0.150.0000.00716.85
8.0.140.0040.00416.77
8.0.130.0030.00313.33
8.0.120.0020.00516.89
8.0.110.0030.00516.86
8.0.100.0050.00316.90
8.0.90.0030.00416.78
8.0.80.0100.00716.87
8.0.70.0000.00716.89
8.0.60.0050.00216.90
8.0.50.0070.00016.89
8.0.30.0130.00916.84
8.0.20.0080.01217.40
8.0.10.0000.00716.95
8.0.00.0100.00816.64
7.4.330.0060.00015.20
7.4.320.0020.00516.66
7.4.300.0060.00016.61
7.4.290.0000.00716.61
7.4.280.0040.00416.49
7.4.270.0070.00016.62
7.4.260.0030.00316.48
7.4.250.0060.00316.42
7.4.240.0000.00716.57
7.4.230.0050.00216.66
7.4.220.0100.01316.67
7.4.210.0090.00516.57
7.4.200.0000.00716.48
7.4.160.0080.00816.51
7.4.150.0120.00917.40
7.4.140.0130.00717.86
7.4.130.0080.00916.66
7.4.120.0100.01116.56
7.4.110.0070.01116.59
7.4.100.0060.01616.49
7.4.90.0080.00916.72
7.4.80.0060.01119.39
7.4.70.0070.01116.49
7.4.60.0120.00916.73
7.4.50.0000.00516.50
7.4.40.0070.01116.58
7.4.30.0100.01016.26
7.4.00.0030.00714.88
7.3.330.0000.00613.13
7.3.320.0060.00013.25
7.3.310.0030.00316.17
7.3.300.0070.00016.16
7.3.290.0000.00716.32
7.3.280.0120.00716.32
7.3.270.0060.01117.40
7.3.260.0140.00316.52
7.3.250.0070.01116.48
7.3.240.0030.01516.25
7.3.230.0030.01316.39
7.3.210.0130.00316.42
7.3.200.0120.00916.32
7.3.190.0030.01316.24
7.3.180.0150.00016.32
7.3.170.0100.00716.32
7.3.160.0090.00916.29
7.3.120.0080.00814.99
7.3.110.0040.01414.74
7.3.100.0070.00714.92
7.3.90.0000.01614.75
7.3.80.0090.00614.84
7.3.70.0070.00714.83
7.3.60.0100.00314.71
7.3.50.0060.00314.85
7.3.40.0060.00614.91
7.3.30.0000.01514.87
7.3.20.0060.00316.84
7.3.10.0050.00816.79
7.3.00.0030.01016.78
7.2.330.0070.01116.70
7.2.320.0120.00716.54
7.2.310.0070.01416.43
7.2.300.0060.01216.51
7.2.290.0090.00916.53
7.2.240.0130.00614.84
7.2.230.0040.01414.92
7.2.220.0040.01214.91
7.2.210.0060.00614.99
7.2.200.0070.00714.87
7.2.190.0060.00915.00
7.2.180.0070.01015.02
7.2.170.0040.01115.07
7.2.160.0030.00914.86
7.2.150.0030.01016.94
7.2.140.0090.00616.79
7.2.130.0040.00616.84
7.2.120.0080.00817.02
7.2.110.0070.00816.82
7.2.100.0070.00716.59
7.2.90.0120.00516.91
7.2.80.0090.00517.03
7.2.70.0000.01116.70
7.2.60.0080.00616.91
7.2.50.0110.00216.99
7.2.40.0070.00616.96
7.2.30.0050.00816.76
7.2.20.0050.00616.84
7.2.10.0050.00816.83
7.2.00.0030.01217.58
7.1.330.0100.00715.76
7.1.320.0120.00015.96
7.1.310.0000.01115.77
7.1.300.0100.00315.84
7.1.290.0090.00315.38
7.1.280.0070.00715.88
7.1.270.0040.00415.87
7.1.260.0030.00915.64
7.1.250.0060.00515.76
7.1.200.0140.00015.84
7.1.100.0060.00617.89
7.1.70.0070.01017.10
7.1.60.0100.01019.27
7.1.50.0060.00617.07
7.1.00.0070.07022.43
7.0.200.0270.00314.73
7.0.60.0000.04319.94
7.0.50.0070.06017.92
7.0.40.0100.04319.90
7.0.30.0330.04720.18
7.0.20.0230.05720.13
7.0.10.0230.09020.13
7.0.00.0100.06020.16
5.6.280.0030.05720.92
5.6.210.0130.07320.61
5.6.200.0000.05318.21
5.6.190.0170.04720.63
5.6.180.0200.05020.43
5.6.170.0300.05720.61
5.6.160.0070.04020.38
5.6.150.0100.07718.12
5.6.140.0070.04018.12
5.6.130.0070.08718.07
5.6.120.0000.04721.09
5.6.110.0230.07321.11
5.6.100.0070.05720.97
5.6.90.0170.08320.97
5.6.80.0170.07020.50
5.6.70.4500.04320.37
5.5.350.0200.07320.43
5.5.340.0000.04317.92
5.5.330.0030.05720.23
5.5.320.0370.07320.42
5.5.310.0270.03720.27
5.5.300.0030.03717.89
5.5.290.0070.08318.02
5.5.280.0130.05020.68
5.5.270.0130.06720.75
5.5.260.0030.06720.87
5.5.250.0070.03720.61
5.5.240.0270.07720.36
5.4.450.0270.05319.57
5.4.440.0130.06019.13
5.4.430.0170.05719.63
5.4.420.0200.05319.46
5.4.410.0200.05319.50
5.4.400.0230.04719.14
5.4.390.0200.05319.11
5.4.380.0200.05019.30
5.4.370.0130.05719.06
5.4.360.0130.06019.13
5.4.350.0230.05018.99
5.4.340.0230.05019.19
5.4.320.0200.05319.21
5.4.310.0170.05019.13
5.4.300.0200.05019.16
5.4.290.0270.04719.22
5.4.280.0170.05719.19
5.4.270.0230.05018.95
5.4.260.0270.04319.30
5.4.250.0200.05319.26
5.4.240.0170.05319.24
5.4.230.0300.05719.11
5.4.220.0230.06019.18
5.4.210.0130.05719.14
5.4.200.0170.05319.13
5.4.190.0130.05718.79
5.4.180.0130.05718.90
5.4.170.0100.06318.79
5.4.160.0200.05019.18
5.4.150.0170.07018.92
5.4.140.0330.03716.30
5.4.130.0270.04716.19
5.4.120.0230.04716.21
5.4.110.0170.05716.48
5.4.100.0170.07316.54
5.4.90.0270.05316.50
5.4.80.0100.05716.20
5.4.70.0170.03716.45
5.4.60.0270.04016.36
5.4.50.0000.03716.40
5.4.40.0000.07716.45
5.4.30.0100.06316.20
5.4.20.0230.04016.36

preferences:
54.64 ms | 401 KiB | 5 Q