3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeTarget = 0.4; $cost = 9; do { $cost++; $start = microtime(true); password_hash("test", PASSWORD_BCRYPT, ["cost" => $cost]); $end = microtime(true); } while (($end - $start) < $timeTarget); echo "Appropriate Cost Found: " . $cost . "\n";

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.3.120.0070.91815.05
7.3.110.0030.89214.54
7.3.100.0030.88414.79
7.3.90.0100.87714.76
7.3.80.0100.90114.95
7.3.70.0100.87814.78
7.3.60.0070.88214.81
7.3.50.0030.90314.53
7.3.40.0000.88814.73
7.3.30.0070.88214.94
7.3.20.0000.88616.41
7.3.10.0030.88716.47
7.3.00.0070.88516.48
7.2.240.0030.88814.97
7.2.230.0030.89414.98
7.2.220.0070.90515.13
7.2.210.0070.88214.84
7.2.200.0030.91214.83
7.2.190.0070.88014.97
7.2.180.0070.88015.05
7.2.170.0000.88815.01
7.2.160.0070.88414.98
7.2.150.0070.89616.55
7.2.140.0030.88717.02
7.2.130.0100.88316.95
7.2.120.0070.90416.95
7.2.110.0070.88217.07
7.2.100.0100.89916.95
7.2.90.0130.87816.88
7.2.80.0070.87616.89
7.2.70.0070.88116.93
7.2.60.0070.88316.95
7.2.50.0000.89016.99
7.2.40.0130.88016.69
7.2.30.0070.88717.00
7.2.20.0030.89516.96
7.2.10.0070.88316.97
7.2.00.0030.91018.09
7.1.330.0070.88315.83
7.1.320.0100.88715.57
7.1.310.0030.88615.59
7.1.300.0070.88715.50
7.1.290.0000.91615.72
7.1.280.0070.90615.92
7.1.270.0030.90615.81
7.1.260.0070.92115.66
7.1.250.0100.88115.78
7.1.70.0370.92516.93
7.1.60.0070.99319.40
7.1.50.0200.96516.90
7.1.00.0001.75322.33
7.0.200.1630.93416.88
7.0.140.0101.76721.93
7.0.100.0371.05719.88
7.0.90.0030.96320.09
7.0.80.0100.90320.08
7.0.70.0131.03019.75
7.0.60.0200.89719.82
7.0.50.0330.99320.29
7.0.40.0170.90720.13
7.0.30.0171.03719.99
7.0.20.0970.99320.05
7.0.10.0100.94019.99
7.0.00.0071.03320.03
5.6.280.0030.94020.77
5.6.250.0170.99720.55
5.6.240.0171.02720.64
5.6.230.0000.91020.67
5.6.220.0670.86320.46
5.6.210.0101.03320.70
5.6.200.1100.77020.96
5.6.190.0000.97721.04
5.6.180.0100.98321.02
5.6.170.0130.95721.01
5.6.160.0101.06021.04
5.6.150.0170.98321.04
5.6.140.0100.95020.99
5.6.130.0071.03321.02
5.6.120.0070.90321.02
5.6.110.0070.83020.87
5.6.100.0031.03720.97
5.6.90.0030.98720.95
5.6.80.0071.04020.36
5.6.70.0171.02320.28
5.6.60.0070.96720.36
5.6.50.0130.93320.29
5.6.40.0130.83720.38
5.6.30.0131.06320.31
5.6.20.0070.96020.44
5.6.10.0800.84720.26
5.6.00.0130.94020.29
5.5.380.0200.97720.39
5.5.370.0071.06720.49
5.5.360.0071.03720.35
5.5.350.0071.05020.37
5.5.340.0030.97020.72
5.5.330.0071.05020.59
5.5.320.0101.04320.84
5.5.310.0100.98020.86
5.5.300.0201.05720.71
5.5.290.0000.92720.87
5.5.280.0100.82020.72
5.5.270.0000.99320.87
5.5.260.0070.81720.73
5.5.250.0130.91320.62
5.5.240.0071.03320.13
5.5.230.0101.01720.20
5.5.220.0200.96020.22
5.5.210.0070.85719.97
5.5.200.0130.86720.04
5.5.190.0031.04020.09
5.5.180.0200.91320.21
5.5.160.0031.01020.20
5.5.150.0100.98020.13
5.5.140.0071.00720.22
5.5.130.0100.92720.22
5.5.120.0000.97320.14
5.5.110.0070.81720.11
5.5.100.0101.07319.96
5.5.90.0130.89020.03
5.5.80.0070.97020.02
5.5.70.0031.02020.04
5.5.60.0131.04019.93
5.5.50.0130.98719.91
5.5.40.0100.99720.00
5.5.30.0130.99020.09
5.5.20.0100.99020.00
5.5.10.0131.03720.00
5.5.00.0131.01720.06
5.4.450.0200.02319.39
5.4.440.0070.04719.23
5.4.430.0130.06719.46
5.4.420.0100.06319.22
5.4.410.0070.07719.43
5.4.400.0170.06319.04
5.4.390.0100.05319.07
5.4.380.0070.03318.89
5.4.370.0100.03019.13
5.4.360.0030.04019.06
5.4.350.0130.06719.04
5.4.340.0070.03319.03
5.4.320.0030.08318.90
5.4.310.0100.07318.96
5.4.300.0070.06319.05
5.4.290.0000.06718.95
5.4.280.0070.07319.02
5.4.270.0200.04719.10
5.4.260.0100.07318.96
5.4.250.0130.07319.10
5.4.240.0070.08019.14
5.4.230.0070.06319.11
5.4.220.0070.08719.22
5.4.210.0100.07019.03
5.4.200.0130.07019.05
5.4.190.0070.06718.95
5.4.180.0030.07019.13
5.4.170.0070.03718.88
5.4.160.0100.05719.07
5.4.150.0030.07318.88
5.4.140.0030.04016.02
5.4.130.0030.06016.28
5.4.120.0070.07316.21
5.4.110.0130.06716.36
5.4.100.0030.04316.22
5.4.90.0170.06016.39
5.4.80.0130.06316.24
5.4.70.0000.03716.37
5.4.60.0000.06016.19
5.4.50.0100.05716.39
5.4.40.0000.04716.24
5.4.30.0100.03016.23
5.4.20.0030.04716.23
5.4.10.0130.03716.33
5.4.00.0070.07315.72
5.3.290.0170.06714.65
5.3.280.0100.08314.47
5.3.270.0030.04714.54
5.3.260.0070.04014.55
5.3.250.0070.06014.58
5.3.240.0100.07714.58
5.3.230.0070.07014.54
5.3.220.0130.07014.51
5.3.210.0070.07714.43
5.3.200.0030.06314.55
5.3.190.0070.07314.55
5.3.180.0030.07714.56
5.3.170.0030.03714.48
5.3.160.0070.07314.38
5.3.150.0100.06714.55
5.3.140.0030.07014.56
5.3.130.0100.04014.41
5.3.120.0070.07714.55
5.3.110.0170.07314.55
5.3.100.0100.07313.86
5.3.90.0030.06313.96
5.3.80.0130.06714.00
5.3.70.0070.03313.97
5.3.60.0130.07313.97
5.3.50.0000.06713.81
5.3.40.0000.04313.88
5.3.30.0130.07013.69
5.3.20.0130.06713.63
5.3.10.0100.05013.45
5.3.00.0070.07013.61
5.2.170.0070.05010.99
5.2.160.0130.05311.17
5.2.150.0070.06011.06
5.2.140.0030.06011.02
5.2.130.0030.06011.09
5.2.120.0030.05710.90
5.2.110.0030.05310.95
5.2.100.0030.04711.05
5.2.90.0030.05310.97
5.2.80.0130.05311.06
5.2.70.0030.06310.92
5.2.60.0070.06011.10
5.2.50.0100.06010.82
5.2.40.0030.06310.84
5.2.30.0030.06310.82
5.2.20.0000.05710.95
5.2.10.0030.06310.92
5.2.00.0070.05310.78
5.1.60.0100.05010.00
5.1.50.0130.04310.05
5.1.40.0100.0409.86
5.1.30.0100.04710.20
5.1.20.0030.05010.41
5.1.10.0100.05310.10
5.1.00.0030.05310.10
5.0.50.0070.0378.60
5.0.40.0100.0308.29
5.0.30.0070.0578.23
5.0.20.0000.0378.05
5.0.10.0030.0378.23
5.0.00.0000.0478.25
4.4.90.0030.0308.02
4.4.80.0000.0208.02
4.4.70.0000.0378.02
4.4.60.0000.0408.02
4.4.50.0070.0338.02
4.4.40.0030.0478.02
4.4.30.0070.0178.02
4.4.20.0000.0408.02
4.4.10.0030.0308.02
4.4.00.0030.0538.02
4.3.110.0000.0338.02
4.3.100.0000.0278.02
4.3.90.0000.0378.02
4.3.80.0030.0508.02
4.3.70.0070.0308.02
4.3.60.0070.0278.02
4.3.50.0000.0238.02
4.3.40.0030.0238.02
4.3.30.0100.0238.02
4.3.20.0030.0278.02
4.3.10.0000.0338.02
4.3.00.0070.0278.02

preferences:
34.68 ms | 401 KiB | 5 Q