3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ "cost" => 4, "salt" => "thisisalongsaltforhash" ]; $hash = password_hash("password", PASSWORD_BCRYPT, $options); var_dump(password_get_info($hash));

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)
7.4.00.0080.01014.83
7.3.120.0070.01114.71
7.3.110.0080.01114.89
7.3.100.0080.00914.70
7.3.90.0050.01014.55
7.3.80.0040.01114.69
7.3.70.0020.01114.68
7.3.60.0060.00814.67
7.3.50.0070.00714.73
7.3.40.0050.00714.72
7.3.30.0050.01014.66
7.3.20.0060.01016.49
7.3.10.0070.00516.39
7.3.00.0050.01016.53
7.2.250.0070.01114.69
7.2.240.0100.01114.77
7.2.230.0090.00714.96
7.2.220.0080.00314.88
7.2.210.0060.01114.78
7.2.200.0000.01114.89
7.2.190.0090.00714.85
7.2.180.0110.00614.94
7.2.170.0030.01315.00
7.2.60.0080.00416.87
7.2.00.0030.00719.39
7.1.330.0080.00715.53
7.1.320.0030.01315.65
7.1.310.0020.01015.77
7.1.300.0020.01315.46
7.1.290.0080.01015.70
7.1.280.0060.01115.76
7.1.270.0020.01415.77
7.1.260.0050.00715.83
7.1.200.0150.00415.80
7.1.100.0070.01117.98
7.1.70.0000.00817.06
7.1.60.0150.00619.31
7.1.50.0090.01216.99
7.1.00.0030.08022.43
7.0.200.0040.00416.73
7.0.140.0030.07322.21
7.0.120.0070.06022.09
7.0.60.0230.08021.63
7.0.50.0030.06717.83
7.0.40.0030.05320.32
7.0.30.0100.05320.30
7.0.20.0170.06020.14
7.0.10.0170.08720.33
7.0.00.0200.06720.36
5.6.280.0100.07021.14
5.6.210.0170.07320.74
5.6.200.0100.03718.29
5.6.190.0270.04020.52
5.6.180.0130.04320.63
5.6.170.0200.04020.52
5.6.160.0200.05020.66
5.6.150.0130.05020.34
5.6.140.0270.05720.48
5.6.130.0270.07320.24
5.6.120.0430.07020.25
5.6.110.0170.06020.49
5.6.100.0230.07020.22
5.6.90.0230.07720.36
5.6.80.0300.07019.88
5.6.70.0230.04719.71
5.6.60.0170.05019.88
5.6.50.0200.08019.88
5.6.40.0100.06319.85
5.6.30.0300.07719.60
5.6.20.0270.07719.59
5.6.10.0200.08019.65
5.6.00.0270.03719.78
5.5.350.0070.05020.35
5.5.340.0170.06318.07
5.5.330.0070.05020.63
5.5.320.0170.03720.32
5.5.310.0270.06020.46
5.5.300.0270.05320.30
5.5.290.0200.08320.07
5.5.280.0170.07720.21
5.5.270.0230.06720.31
5.5.260.0230.05320.22
5.5.250.0330.04319.84
5.5.240.0330.07019.68
5.5.230.0330.06319.58
5.5.220.0400.04319.57
5.5.210.0270.08019.57
5.5.200.0130.04719.39
5.5.190.0230.07019.67
5.5.180.0170.06019.64
5.5.160.0200.06019.59
5.5.150.0300.07019.58
5.5.140.0270.03319.65
5.5.130.0270.07719.54
5.5.120.0270.07319.51
5.5.110.0230.06319.52
5.5.100.0230.03719.44
5.5.90.0200.05319.33
5.5.80.0230.05019.57
5.5.70.0200.05319.55
5.5.60.0170.07719.43
5.5.50.0300.07019.29
5.5.40.0270.06019.42
5.5.30.0200.08019.46
5.5.20.0300.07019.27
5.5.10.0270.04719.32
5.5.00.0230.06319.28
5.4.450.0200.07319.48
5.4.440.0270.07719.42
5.4.430.0200.07719.48
5.4.420.0230.05719.52
5.4.410.0270.07319.34
5.4.400.0230.05319.15
5.4.390.0270.03319.20
5.4.380.0300.06718.79
5.4.370.0230.04319.20
5.4.360.0170.05019.09
5.4.350.0270.07318.83
5.4.340.0270.06018.94
5.4.320.0300.05719.18
5.4.310.0200.05319.09
5.4.300.0170.07719.18
5.4.290.0230.04019.14
5.4.280.0270.06719.09
5.4.270.0300.06719.17
5.4.260.0200.04019.14
5.4.250.0270.04019.07
5.4.240.0270.05319.11
5.4.230.0170.06319.09
5.4.220.0200.07318.80
5.4.210.0130.07318.91
5.4.200.0270.06718.79
5.4.190.0300.04319.14
5.4.180.0330.03719.19
5.4.170.0270.06318.81
5.4.160.0230.06019.12
5.4.150.0200.08018.99
5.4.140.0330.06016.24
5.4.130.0430.04016.24
5.4.120.0300.06016.34
5.4.110.0330.06016.31
5.4.100.0170.08016.25
5.4.90.0330.04716.41
5.4.80.0230.06716.38
5.4.70.0200.03316.29
5.4.60.0230.07316.25
5.4.50.0370.05716.55
5.4.40.0170.04316.36
5.4.30.0100.05016.26
5.4.20.0400.05316.55
5.4.10.0200.07716.31
5.4.00.0370.05315.73
5.3.290.0270.04014.59
5.3.280.0170.08014.61
5.3.270.0070.06014.54
5.3.260.0230.06714.52
5.3.250.0270.06314.40
5.3.240.0330.04714.53
5.3.230.0130.05314.69
5.3.220.0200.06714.39
5.3.210.0230.07314.51
5.3.200.0300.04014.50
5.3.190.0170.05014.39
5.3.180.0230.03714.50
5.3.170.0230.06714.65
5.3.160.0230.06014.49
5.3.150.0170.08014.49
5.3.140.0270.06314.48
5.3.130.0230.03314.49
5.3.120.0200.07314.49
5.3.110.0230.06714.45
5.3.100.0230.06713.98
5.3.90.0230.03713.97
5.3.80.0430.04313.83
5.3.70.0200.07713.95
5.3.60.0230.03713.97
5.3.50.0200.04313.87
5.3.40.0300.07713.87
5.3.30.0100.04713.73
5.3.20.0100.04013.62
5.3.10.0170.03713.50
5.3.00.0170.05313.56
5.2.170.0170.06712.52
5.2.160.0170.05712.52
5.2.150.0200.05712.52
5.2.140.0130.03312.52
5.2.130.0270.01712.52
5.2.120.0130.04712.52
5.2.110.0130.03712.52
5.2.100.0200.05712.52
5.2.90.0200.06012.52
5.2.80.0300.02312.52
5.2.70.0230.02712.52
5.2.60.0200.05712.52
5.2.50.0230.04712.52
5.2.40.0100.03712.52
5.2.30.0170.04312.52
5.2.20.0170.04312.52
5.2.10.0100.03312.52
5.2.00.0230.03312.52
5.1.60.0130.02312.52
5.1.50.0100.03712.52
5.1.40.0170.03312.52
5.1.30.0170.03712.52
5.1.20.0170.02312.52
5.1.10.0130.02312.52
5.1.00.0200.02312.52
5.0.50.0100.04012.52
5.0.40.0100.02012.52
5.0.30.0130.06012.52
5.0.20.0070.04312.52
5.0.10.0100.02312.52
5.0.00.0130.06012.52
4.4.90.0100.01712.52
4.4.80.0100.03312.52
4.4.70.0070.01712.52
4.4.60.0070.01712.52
4.4.50.0070.01312.52
4.4.40.0170.04012.52
4.4.30.0070.03012.52
4.4.20.0100.03312.52
4.4.10.0070.03712.52
4.4.00.0100.03712.52
4.3.110.0070.02312.52
4.3.100.0070.02312.52
4.3.90.0100.03012.52
4.3.80.0100.02712.52
4.3.70.0100.03712.52
4.3.60.0130.03012.52
4.3.50.0130.02312.52
4.3.40.0130.03012.52
4.3.30.0100.03712.52
4.3.20.0030.04012.52
4.3.10.0000.02312.52
4.3.00.0000.02312.52

preferences:
36.31 ms | 400 KiB | 5 Q