3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 12, ]; $hash = password_hash('$plaintext', PASSWORD_BCRYPT, $options)."\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.26314.83
7.3.120.0070.26714.81
7.3.110.0100.26314.95
7.3.100.0000.26214.77
7.3.90.0000.25514.85
7.3.80.0030.24314.70
7.3.70.0100.24314.63
7.3.60.0070.24014.82
7.3.50.0000.25114.50
7.3.40.0000.25214.85
7.3.30.0070.25214.40
7.3.20.0030.26616.60
7.3.10.0120.25916.54
7.3.00.0120.24316.20
7.2.250.0070.26815.08
7.2.240.0130.26314.78
7.2.230.0070.25114.79
7.2.220.0030.26114.66
7.2.210.0070.24814.63
7.2.200.0030.24814.93
7.2.190.0030.24814.76
7.2.180.0000.25014.96
7.2.170.0070.23714.89
7.2.130.0130.26016.65
7.2.120.0130.26116.33
7.2.110.0120.25916.38
7.2.100.0130.25816.46
7.2.90.0200.26416.38
7.2.80.0170.25716.59
7.2.70.0130.24116.20
7.2.60.0150.24516.49
7.2.50.0070.25716.39
7.2.40.0200.24016.46
7.2.30.0100.25916.05
7.2.20.0130.26016.01
7.2.10.0130.25316.33
7.2.00.0120.25517.89
7.1.330.0070.25615.45
7.1.320.0070.25015.73
7.1.310.0070.24615.40
7.1.300.0070.25015.65
7.1.290.0000.25415.56
7.1.280.0100.24515.68
7.1.270.0030.24215.76
7.1.260.0070.24715.72
7.1.250.0130.25615.15
7.1.200.0130.23915.84
7.1.100.0070.25318.23
7.1.70.0070.28216.87
7.1.60.0030.30919.40
7.1.50.0100.31316.68
7.1.00.0070.33722.49
7.0.200.0000.25716.65
7.0.140.0000.33721.95
7.0.60.0100.27719.93
7.0.50.0030.27717.88
7.0.40.0070.28320.40
7.0.30.0370.28720.11
7.0.20.0230.29020.12
7.0.10.0030.34720.12
7.0.00.0000.35720.16
5.6.280.0030.35020.88
5.6.210.0200.33020.46
5.6.200.0070.34718.27
5.6.190.0030.28020.45
5.6.180.0470.32320.50
5.6.170.0270.28020.71
5.6.160.0200.32720.39
5.6.150.0070.28718.15
5.6.140.0030.32018.21
5.6.130.0030.29718.17
5.6.120.0030.30321.08
5.6.110.0100.31321.11
5.6.100.0100.34320.97
5.6.90.0030.29720.96
5.6.80.0100.31720.53
5.5.350.0100.35020.46
5.5.340.0100.32717.97
5.5.330.0030.28020.07
5.5.320.3500.28720.34
5.5.310.0300.32020.34
5.5.300.0070.27717.96
5.5.290.0130.31017.93
5.5.280.0100.34720.87
5.5.270.0100.34320.63
5.5.260.0200.34020.75
5.5.250.0070.28020.68
5.5.240.0000.28720.14
5.4.450.0030.08319.48
5.4.440.0000.04719.40
5.4.430.0130.07019.49
5.4.420.0030.08019.39
5.4.410.0030.05319.37
5.4.400.0070.08019.14
5.4.390.0030.08719.14
5.4.380.0030.06719.19
5.4.370.0130.06719.08
5.4.360.0070.07318.88
5.4.350.0030.07019.09
5.4.340.0100.06319.14
5.4.320.0070.03719.17
5.4.310.0030.03719.17
5.4.300.0030.04019.18
5.4.290.0030.03718.80
5.4.280.0130.02719.17
5.4.270.0070.03319.05
5.4.260.0030.04019.07
5.4.250.0030.04318.82
5.4.240.0100.03018.80
5.4.230.0070.03319.13
5.4.220.0100.03719.11
5.4.210.0100.03019.12
5.4.200.0000.04718.78
5.4.190.0100.04719.06
5.4.180.0030.08019.17
5.4.170.0030.05019.16
5.4.160.0000.05319.16
5.4.150.0030.08019.05
5.4.140.0030.05316.48
5.4.130.0170.05316.25
5.4.120.0030.04716.43
5.4.110.0030.07716.43
5.4.100.0070.07016.38
5.4.90.0100.06716.26
5.4.80.0070.07716.22
5.4.70.0070.05016.13
5.4.60.0070.07316.33
5.4.50.0100.04716.31
5.4.40.0070.04016.34
5.4.30.0230.03016.20
5.4.20.0100.07016.36
5.4.10.0100.05316.20
5.4.00.0030.05315.68
5.3.290.0000.04014.61
5.3.280.0070.03314.54
5.3.270.0030.08014.57
5.3.260.0100.07014.40
5.3.250.0000.04714.69
5.3.240.0000.05314.39
5.3.230.0030.04014.57
5.3.220.0000.06014.45
5.3.210.0030.07714.50
5.3.200.0170.06314.39
5.3.190.0000.05014.50
5.3.180.0130.03714.50
5.3.170.0030.03714.57
5.3.160.0100.05014.50
5.3.150.0100.07314.39
5.3.140.0070.05714.49
5.3.130.0100.07314.47
5.3.120.0100.07714.34
5.3.110.0070.07714.49
5.3.100.0100.04013.96
5.3.90.0000.04014.11
5.3.80.0070.03313.94
5.3.70.0100.03013.86
5.3.60.0130.05713.95
5.3.50.0070.07014.04
5.3.40.0030.04013.78
5.3.30.0000.04313.84
5.3.20.0000.04013.64
5.3.10.0000.04313.60
5.3.00.0070.03313.58
5.2.170.0030.04011.13
5.2.160.0030.03311.11
5.2.150.0070.02711.12
5.2.140.0030.03311.05
5.2.130.0000.06311.04
5.2.120.0070.04311.08
5.2.110.0030.04011.02
5.2.100.0000.04310.96
5.2.90.0070.03711.03
5.2.80.0000.03310.92
5.2.70.0030.03011.25
5.2.60.0070.02710.96
5.2.50.0030.06310.91
5.2.40.0030.04010.97
5.2.30.0030.04010.90
5.2.20.0030.03711.11
5.2.10.0070.05710.85
5.2.00.0030.05010.72
5.1.60.0070.0379.96
5.1.50.0000.05710.03
5.1.40.0000.0409.97
5.1.30.0030.03010.49
5.1.20.0030.02710.50
5.1.10.0030.0309.97
5.1.00.0030.02710.21
5.0.50.0030.0378.52
5.0.40.0070.0378.41
5.0.30.0030.0608.29
5.0.20.0070.0378.16
5.0.10.0070.0378.21
5.0.00.0000.0338.17
4.4.90.0030.0237.87
4.4.80.0030.0307.87
4.4.70.0000.0337.87
4.4.60.0000.0277.87
4.4.50.0030.0277.87
4.4.40.0030.0537.87
4.4.30.0000.0277.87
4.4.20.0030.0137.87
4.4.10.0030.0177.87
4.4.00.0030.0537.87
4.3.110.0000.0207.87
4.3.100.0000.0237.87
4.3.90.0000.0207.87
4.3.80.0030.0237.87
4.3.70.0030.0137.87
4.3.60.0100.0177.87
4.3.50.0070.0237.87
4.3.40.0030.0507.87
4.3.30.0030.0337.87
4.3.20.0000.0307.87
4.3.10.0000.0237.87
4.3.00.0070.0307.87

preferences:
43.69 ms | 401 KiB | 5 Q