3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeTarget = 0.2; $PASSWORD_BCRYPT ="ABCD"; $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.2.120.0130.43316.47
7.2.110.0290.40616.61
7.2.100.0490.43016.62
7.2.90.0360.42816.52
7.2.80.0130.43116.72
7.2.70.0330.43516.98
7.2.60.0160.43616.90
7.2.50.0090.43816.87
7.2.40.0170.44016.68
7.2.30.0150.43116.93
7.2.20.0130.43716.95
7.2.10.0170.43816.98
7.2.00.0080.44218.07
7.1.240.0520.42315.44
7.1.230.0220.42415.70
7.1.220.0350.42115.61
7.1.210.0130.43115.77
7.1.200.0160.43815.63
7.1.190.0210.43715.62
7.1.180.0130.44215.80
7.1.170.0160.43515.65
7.1.160.0440.44115.38
7.1.150.0100.44315.78
7.1.140.0260.43715.70
7.1.130.0200.41415.52
7.1.120.0200.41815.50
7.1.110.0140.42815.66
7.1.100.0260.42116.00
7.1.90.0170.43215.84
7.1.80.0390.42015.82
7.1.70.0120.43116.36
7.1.60.0250.42016.49
7.1.50.0210.46716.42
7.1.40.0260.42215.80
7.1.30.0330.42815.68
7.1.20.0160.41215.82
7.1.10.0200.41515.95
7.1.00.0151.09619.12
7.0.320.0160.43115.53
7.0.310.0360.42515.19
7.0.300.0200.43215.53
7.0.290.0030.44315.49
7.0.280.0200.42315.38
7.0.270.0200.41415.46
7.0.260.0230.41915.23
7.0.250.0200.43815.19
7.0.240.0260.41215.55
7.0.230.0270.41415.45
7.0.220.0500.42315.66
7.0.210.0230.42415.27
7.0.200.0150.44716.04
7.0.190.0170.41515.61
7.0.180.0100.41715.60
7.0.170.0400.41915.09
7.0.160.0260.41415.28
7.0.150.0430.41415.43
7.0.140.0101.09718.77
7.0.130.0190.42215.21
7.0.120.0330.42715.50
7.0.110.0230.42215.16
7.0.100.0120.60117.72
7.0.90.0130.40917.61
7.0.80.0130.41617.75
7.0.70.0210.44017.62
7.0.60.0100.46317.48
7.0.50.0200.47017.92
7.0.40.0100.49016.84
7.0.30.0080.45916.75
7.0.20.0020.45516.83
7.0.10.0150.44416.78
7.0.00.0050.48416.81
5.6.380.0130.44713.93
5.6.370.0060.44813.76
5.6.360.0070.43814.45
5.6.350.0140.41914.43
5.6.340.0160.42814.07
5.6.330.0190.41614.61
5.6.320.0130.41314.27
5.6.310.0130.42914.38
5.6.300.0070.41714.25
5.6.290.0160.40914.39
5.6.280.0081.10817.56
5.6.270.0070.42014.40
5.6.260.0160.41814.28
5.6.250.0140.46317.45
5.6.240.0080.44017.52
5.6.230.0080.41017.35
5.6.220.0100.47017.53
5.6.210.0060.47317.52
5.6.200.0130.48117.85
5.6.190.0080.47017.75
5.6.180.0150.48517.69
5.6.170.0110.48817.62
5.6.160.0180.46417.64
5.6.150.0110.46117.64
5.6.140.0080.44917.70
5.6.130.0130.45617.70
5.6.120.0070.48517.57
5.6.110.0070.47917.71
5.6.100.0080.48517.55
5.6.90.0100.48617.71
5.6.80.0070.47517.28
5.6.70.0070.44717.26
5.6.60.0070.47817.23
5.6.50.0030.42817.27
5.6.40.0120.41717.46
5.6.30.0080.45217.36
5.6.20.0030.47017.26
5.6.10.0030.46317.34
5.6.00.0030.48517.26
5.5.380.0130.45615.81
5.5.370.0080.46215.92
5.5.360.0130.46215.66
5.5.350.0080.46615.83
5.5.340.0070.40915.99
5.5.330.0050.41316.17
5.5.320.0080.47615.99
5.5.310.0100.47815.99
5.5.300.0080.47816.01
5.5.290.0150.46516.00
5.5.280.0050.48815.95
5.5.270.0100.48315.92
5.5.260.0080.47016.05
5.5.250.0080.44815.90
5.5.240.0110.46215.65
5.5.230.0070.47615.60
5.5.220.0070.47615.72
5.5.210.0070.41615.59
5.5.200.0030.40915.69
5.5.190.0070.41515.71
5.5.180.0050.41815.69
5.5.170.0030.44114.18
5.5.160.0100.41215.64
5.5.150.0100.46915.71
5.5.140.0080.44615.56
5.5.130.0000.46715.54
5.5.120.0030.47615.75
5.5.110.0280.41215.73
5.5.100.0030.47815.65
5.5.90.0070.46715.64
5.5.80.0070.40815.55
5.5.70.0080.47915.53
5.5.60.0050.42315.51
5.5.50.0100.48015.50
5.5.40.0100.49115.46
5.5.30.0080.44315.55
5.5.20.0080.47215.53
5.5.10.0150.44215.68
5.5.00.0100.40515.49
5.4.450.0050.03415.15
5.4.440.0070.02015.14
5.4.430.0050.04215.17
5.4.420.0040.02215.26
5.4.410.0050.03515.12
5.4.400.0070.03514.89
5.4.390.0050.03714.99
5.4.380.0040.04114.95
5.4.370.0050.02214.86
5.4.360.0060.02014.96
5.4.350.0050.03914.99
5.4.340.0090.03615.12
5.4.330.0050.00510.92
5.4.320.0060.01915.00
5.4.310.0050.02814.97
5.4.300.0020.02915.13
5.4.290.0100.01715.06
5.4.280.0070.04214.95
5.4.270.0080.02815.09
5.4.260.0030.02114.94
5.4.250.0020.04114.97
5.4.240.0070.02014.90
5.4.230.0070.03015.08
5.4.220.0060.01915.07
5.4.210.0050.02715.01
5.4.200.0050.02015.02
5.4.190.0070.03515.04
5.4.180.0060.03614.96
5.4.170.0150.03315.01
5.4.160.0020.02415.02
5.4.150.0070.01514.84
5.4.140.0080.01813.66
5.4.130.0100.02013.59
5.4.120.0040.02013.60
5.4.110.0070.01813.66
5.4.100.0080.01813.63
5.4.90.0030.03313.59
5.4.80.0090.03013.72
5.4.70.0050.04113.58
5.4.60.0050.02513.68
5.4.50.0050.02013.60
5.4.40.0060.02113.69
5.4.30.0070.02013.63
5.4.20.0080.01913.60
5.4.10.0070.01513.66
5.4.00.0040.02013.34
5.3.290.0030.02813.32
5.3.280.0050.02313.32
5.3.270.0090.03213.32
5.3.260.0050.02013.32
5.3.250.0020.02113.32
5.3.240.0070.02513.32
5.3.230.0080.01713.32
5.3.220.0050.02013.32
5.3.210.0110.01713.32
5.3.200.0040.01913.32
5.3.190.0040.02613.32
5.3.180.0050.01813.32
5.3.170.0080.01813.32
5.3.160.0010.02413.32
5.3.150.0060.02113.32
5.3.140.0070.03513.32
5.3.130.0030.02313.32
5.3.120.0040.02213.32
5.3.110.0040.02613.32
5.3.100.0030.02313.32
5.3.90.0020.02413.32
5.3.80.0060.01813.32
5.3.70.0060.01813.32
5.3.60.0070.02013.32
5.3.50.0030.02213.32
5.3.40.0040.01713.32
5.3.30.0060.01713.32
5.3.20.0050.01913.32
5.3.10.0090.01213.32
5.3.00.0040.02313.32
5.2.170.0050.01813.32
5.2.160.0020.01913.32
5.2.150.0040.01713.32
5.2.140.0020.01513.32
5.2.130.0050.01313.32
5.2.120.0050.01713.32
5.2.110.0060.01413.32
5.2.100.0050.01313.32
5.2.90.0060.01513.32
5.2.80.0050.01813.32
5.2.70.0020.01513.32
5.2.60.0000.01913.32
5.2.50.0020.01513.32
5.2.40.0060.01213.32
5.2.30.0010.01813.32
5.2.20.0020.02013.32
5.2.10.0050.01313.32
5.2.00.0040.01413.32
5.1.60.0020.01413.32
5.1.50.0050.01013.32
5.1.40.0080.01013.32
5.1.30.0050.01313.32
5.1.20.0040.01213.32
5.1.10.0040.01213.32
5.1.00.0040.02713.32
5.0.50.0060.01013.32
5.0.40.0040.01013.32
5.0.30.0020.03513.32
5.0.20.0030.02313.32
5.0.10.0020.01213.32
5.0.00.0050.03213.32
4.4.90.0010.00913.32
4.4.80.0020.00813.32
4.4.70.0020.00913.32
4.4.60.0020.00913.32
4.4.50.0030.00813.32
4.4.40.0020.01313.32
4.4.30.0050.00913.32
4.4.20.0030.00613.32
4.4.10.0030.00713.32
4.4.00.0040.01613.32
4.3.110.0020.01013.32
4.3.100.0020.01313.32
4.3.90.0040.01013.32
4.3.80.0060.02213.32
4.3.70.0010.01513.32
4.3.60.0010.01013.32
4.3.50.0020.01213.32
4.3.40.0000.02513.32
4.3.30.0020.01013.32
4.3.20.0020.01113.32
4.3.10.0000.01413.32
4.3.00.0000.01113.32

preferences:
40.82 ms | 401 KiB | 5 Q