3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeTarget = 0.2; $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.4.00.0070.45214.75
7.3.120.0070.45614.45
7.3.110.0000.45714.92
7.3.100.0030.43014.90
7.3.90.0070.43314.84
7.3.80.0070.44415.04
7.3.70.0030.44114.72
7.3.60.0100.43614.86
7.3.50.0070.44214.80
7.3.40.0100.42915.01
7.3.30.0070.42214.48
7.3.20.0070.44416.58
7.3.10.0080.43516.52
7.3.00.0100.43016.33
7.2.250.0060.43115.22
7.2.240.0030.45814.85
7.2.230.0070.44515.31
7.2.220.0030.43915.12
7.2.210.0030.43914.95
7.2.200.0070.43315.12
7.2.190.0000.45115.00
7.2.180.0070.43315.19
7.2.170.0100.42214.84
7.2.130.0400.44916.49
7.2.120.0260.44216.58
7.2.110.0100.44016.86
7.2.100.0100.44216.28
7.2.90.0100.44516.31
7.2.80.0200.43216.29
7.2.70.0130.43716.57
7.2.60.0100.44516.66
7.2.50.0100.43916.64
7.2.40.0100.44016.93
7.2.30.0100.43716.97
7.2.20.0070.43816.94
7.2.10.0100.44217.00
7.2.00.0070.43418.06
7.1.330.0030.44615.63
7.1.320.0030.44915.91
7.1.310.0070.42915.75
7.1.300.0030.44915.79
7.1.290.0030.43016.04
7.1.280.0030.43315.56
7.1.270.0070.43815.66
7.1.260.0070.41316.04
7.1.250.0300.44015.74
7.1.70.1360.43117.01
7.1.60.0070.44017.22
7.1.50.0100.50116.96
7.1.40.0070.44716.41
7.1.30.0030.43416.49
7.1.20.0030.45816.77
7.1.10.0030.42216.88
7.1.00.0100.42516.75
7.0.200.0000.42416.79
7.0.190.0000.42316.44
7.0.180.0030.42316.33
7.0.170.0000.42116.40
7.0.160.0030.41916.58
7.0.150.0030.43716.30
7.0.140.0070.43016.39
7.0.130.0100.42016.49
7.0.120.0100.43116.67
7.0.110.0000.43416.64
7.0.100.0130.41016.28
7.0.90.0030.47216.31
7.0.80.0030.43016.24
7.0.70.0000.42216.54
7.0.60.0000.43016.35
7.0.50.0030.42316.34
7.0.40.0030.42714.62
7.0.30.0030.42614.61
7.0.20.0630.42414.42
7.0.10.0030.42014.51
7.0.00.0000.42314.54
5.6.300.0100.45020.67
5.6.290.0030.47920.90
5.6.280.0030.50120.86
5.6.270.0070.45420.95
5.6.260.0070.46420.95
5.6.250.0070.46920.77
5.6.240.0130.52321.02
5.6.230.0070.48720.85
5.6.220.0030.45620.93
5.6.210.0000.47220.77
5.6.200.0030.47120.80
5.6.190.0100.44820.96
5.6.180.0030.46820.81
5.6.170.0030.51720.91
5.6.160.0030.45920.99
5.6.150.0100.48120.96
5.6.140.0030.46320.89
5.6.130.0000.46620.71
5.6.120.0070.45220.83
5.6.110.0070.46320.79
5.6.100.0100.47620.79
5.6.90.0130.46320.86
5.6.80.0000.47720.41
5.6.70.1000.48320.16
5.6.60.0100.49620.37
5.6.50.0030.45720.19
5.6.40.0030.45820.39
5.6.30.0200.46120.07
5.6.20.0000.46320.28
5.6.10.0070.46020.15
5.6.00.0000.46920.15
5.5.380.0000.46217.48
5.5.370.0030.45317.46
5.5.360.0070.46017.54
5.5.350.0000.45817.54
5.5.340.0030.46818.06
5.5.330.0070.46118.10
5.5.320.0030.46418.07
5.5.310.0000.46718.03
5.5.300.0070.46617.83
5.5.290.0030.46017.74
5.5.280.0000.46218.03
5.5.270.0070.45818.08
5.5.260.0000.46518.02
5.5.250.0000.46717.78
5.5.240.0030.47517.48
5.5.230.0070.45417.21
5.5.220.0030.45217.48
5.5.210.0030.46317.38
5.5.200.0030.46817.40
5.5.190.0030.46317.05
5.5.180.0070.48017.47
5.5.160.0070.45317.35
5.5.150.0030.45517.38
5.5.140.0070.49417.43
5.5.130.0000.52217.29
5.5.120.0070.46417.35
5.5.110.0070.46917.32
5.5.100.0070.47017.00
5.5.90.0070.47017.34
5.5.80.0070.45917.27
5.5.70.0000.46117.08
5.5.60.0000.47016.98
5.5.50.0100.44617.08
5.5.40.0070.46417.24
5.5.30.0000.46617.30
5.5.20.0130.52517.32
5.5.10.0000.46217.20
5.5.00.0030.45916.93
5.4.450.0070.04119.31
5.4.440.0030.04119.36
5.4.430.0060.03519.37
5.4.420.0070.03619.28
5.4.410.0030.04419.03
5.4.400.0070.03519.12
5.4.390.0000.04919.09
5.4.380.0030.06118.91
5.4.370.0070.07218.88
5.4.360.0030.08018.90
5.4.350.0030.04219.00
5.4.340.0060.04518.97
5.4.320.0100.03918.88
5.4.310.0030.04519.03
5.4.300.0060.03218.99
5.4.290.0030.03718.96
5.4.280.0030.05318.82
5.4.270.0070.03318.95
5.4.260.0030.07519.11
5.4.250.0030.03819.02
5.4.240.0000.04518.94
5.4.230.0030.05119.13
5.4.220.0100.03219.10
5.4.210.0000.04219.03
5.4.200.0090.03018.95
5.4.190.0000.05019.04
5.4.180.0030.04518.95
5.4.170.0030.03919.08
5.4.160.0030.05019.11
5.4.150.0030.04218.86
5.4.140.0000.04116.38
5.4.130.0030.03616.32
5.4.120.0060.03116.38
5.4.110.0000.03716.62
5.4.100.0200.03316.45
5.4.90.0000.03816.46
5.4.80.0070.03316.45
5.4.70.0000.04116.63
5.4.60.0030.03316.66
5.4.50.0070.06016.53
5.4.40.0000.04016.61
5.4.30.0000.04016.53
5.4.20.0000.04116.43
5.4.10.0070.03316.52
5.4.00.0030.04115.88
5.3.290.0030.03714.84
5.3.280.0100.07414.58
5.3.270.0030.03714.75
5.3.260.0000.04114.68
5.3.250.0000.03714.42
5.3.240.0030.03414.78
5.3.230.0030.03714.59
5.3.220.0000.03814.38
5.3.210.0030.03714.74
5.3.200.0060.03214.68
5.3.190.0030.05014.71
5.3.180.0030.03514.74
5.3.170.0000.03914.38
5.3.160.0070.06414.38
5.3.150.0000.03914.68
5.3.140.0100.05614.75
5.3.130.0030.04614.70
5.3.120.0000.04714.69
5.3.110.0030.04814.65
5.3.100.0000.03814.21
5.3.90.0030.05714.21
5.3.80.0030.04014.20
5.3.70.0030.03814.21
5.3.60.0030.03914.06
5.3.50.0100.03114.03
5.3.40.0000.03814.18
5.3.30.0000.03913.72
5.3.20.0030.03413.71
5.3.10.0000.03713.71
5.3.00.0030.03413.80

preferences:
28.31 ms | 401 KiB | 5 Q