3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * This code will benchmark your server to determine how high of a cost you can * afford. You want to set the highest cost that you can without slowing down * you server too much. 10 is a good baseline, and more is good if your servers * are fast enough. */ $timeTarget = 0.2; $cost = 9; do { $cost++; $start = microtime(true); password_hash("test", PASSWORD_BCRYPT, ["cost" => $cost]); $end = microtime(true); } while (($end - $start) < 0.2); 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.00.0070.44219.03
7.1.70.0030.42616.93
7.1.60.0170.48319.40
7.1.50.0100.49916.92
7.1.00.0130.45022.36
7.0.200.0000.42516.98
7.0.140.0001.77721.98
7.0.120.0070.50022.19
7.0.60.0100.53319.96
7.0.50.0070.46017.86
7.0.40.0170.52020.06
7.0.30.0300.52020.17
7.0.20.0270.46020.20
7.0.10.0030.50020.30
7.0.00.0070.45320.19
5.6.280.0070.43021.02
5.6.210.0100.53020.64
5.6.200.0070.52318.22
5.6.190.0070.51720.62
5.6.180.0430.51320.45
5.6.170.0270.46720.54
5.6.160.0070.53720.45
5.6.150.0130.52718.17
5.6.140.0100.51018.20
5.6.130.0770.47718.18
5.6.120.0130.52321.12
5.6.110.0070.52021.11
5.6.100.0130.52720.95
5.6.90.0070.53320.93
5.6.80.0000.45720.40
5.5.350.0000.54020.41
5.5.340.0070.54017.99
5.5.330.0170.52720.25
5.5.320.0070.48020.28
5.5.310.0330.51320.24
5.5.300.0030.53017.95
5.5.290.0100.51717.98
5.5.280.0000.47720.64
5.5.270.0070.52720.75
5.5.260.0170.50720.80
5.5.250.0170.47020.64
5.5.240.0000.52020.15
5.4.450.0030.05019.45
5.4.440.0000.07719.41
5.4.430.0070.07019.50
5.4.420.0070.07319.34
5.4.410.0130.07019.31
5.4.400.0070.07318.92
5.4.390.0070.06718.81
5.4.380.0030.03719.09
5.4.370.0100.07019.14
5.4.360.0000.06318.89
5.4.350.0030.07719.18
5.4.340.0100.07319.16
5.4.320.0100.04318.79
5.4.310.0000.04019.16
5.4.300.0070.03718.91
5.4.290.0100.03318.79
5.4.280.0130.03019.11
5.4.270.0100.07018.92
5.4.260.0170.06319.08
5.4.250.0030.05019.14
5.4.240.0130.05318.78
5.4.230.0130.06719.21
5.4.220.0000.04319.17
5.4.210.0000.04319.00
5.4.200.0000.04318.80
5.4.190.0030.04319.14
5.4.180.0000.04718.78
5.4.170.0100.07719.07
5.4.160.0100.07019.13
5.4.150.0030.04718.89
5.4.140.0100.03316.33
5.4.130.0070.04016.33
5.4.120.0100.04016.34
5.4.110.0130.03716.23
5.4.100.0100.04316.36
5.4.90.0070.06016.37
5.4.80.0000.05716.28
5.4.70.0100.06716.35
5.4.60.0100.05316.21
5.4.50.0100.05316.26
5.4.40.0100.06716.12
5.4.30.0000.04316.38
5.4.20.0000.04016.14
5.4.10.0000.04016.12
5.4.00.0030.03315.61
5.3.290.0030.08014.61
5.3.280.0070.03314.52
5.3.270.0070.05314.55
5.3.260.0170.06314.49
5.3.250.0070.04014.54
5.3.240.0130.04314.57
5.3.230.0030.04314.53
5.3.220.0070.05314.45
5.3.210.0070.04014.49
5.3.200.0030.04314.39
5.3.190.0100.04714.65
5.3.180.0070.04314.52
5.3.170.0100.07314.48
5.3.160.0100.07014.65
5.3.150.0130.07014.65
5.3.140.0000.05014.51
5.3.130.0030.05014.45
5.3.120.0030.04014.57
5.3.110.0070.07714.53
5.3.100.0100.05314.01
5.3.90.0030.05313.98
5.3.80.0030.05313.94
5.3.70.0000.04013.99
5.3.60.0000.04713.94
5.3.50.0030.04013.87
5.3.40.0070.04013.88
5.3.30.0070.05313.85
5.3.20.0000.06713.52
5.3.10.0100.07013.50
5.3.00.0100.06313.57
5.2.170.0000.04711.23
5.2.160.0030.05711.08
5.2.150.0000.05711.13
5.2.140.0030.05311.11
5.2.130.0070.05011.09
5.2.120.0000.04711.09
5.2.110.0130.03011.00
5.2.100.0030.03310.93
5.2.90.0100.04011.08
5.2.80.0000.03011.03
5.2.70.0000.03010.97
5.2.60.0070.02711.05
5.2.50.0030.03010.95
5.2.40.0130.05710.93
5.2.30.0000.04010.79
5.2.20.0000.05011.11
5.2.10.0000.03010.86
5.2.00.0030.04710.71
5.1.60.0070.0209.94
5.1.50.0030.04010.05
5.1.40.0100.0509.94
5.1.30.0070.03010.34
5.1.20.0070.03710.31
5.1.10.0030.03010.06
5.1.00.0030.05010.08
5.0.50.0030.0238.45
5.0.40.0030.0308.48
5.0.30.0000.0338.30
5.0.20.0070.0278.25
5.0.10.0030.0238.15
5.0.00.0000.0678.06
4.4.90.0030.0137.73
4.4.80.0000.0177.73
4.4.70.0000.0207.73
4.4.60.0030.0307.73
4.4.50.0070.0277.73
4.4.40.0130.0337.73
4.4.30.0000.0207.73
4.4.20.0000.0207.73
4.4.10.0030.0237.73
4.4.00.0030.0407.73
4.3.110.0000.0207.73
4.3.100.0030.0307.73
4.3.90.0000.0237.73
4.3.80.0000.0407.73
4.3.70.0030.0277.73
4.3.60.0030.0237.73
4.3.50.0030.0177.73
4.3.40.0000.0377.73
4.3.30.0030.0307.73
4.3.20.0000.0237.73
4.3.10.0000.0337.73
4.3.00.0000.0307.73

preferences:
33.2 ms | 400 KiB | 5 Q