3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash['info'][] = password_get_info($hash['hash'][0]); $hash['info'][] = password_get_info($hash['hash'][1]); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_BCRYPT,$options); var_dump($hash);

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.0160.07414.98
7.3.120.0030.07714.92
7.3.110.0030.08314.92
7.3.100.0030.08214.94
7.3.90.0070.07914.82
7.3.80.0070.07614.98
7.3.70.0000.07614.89
7.3.60.0030.07914.88
7.3.50.0030.09314.98
7.3.40.0030.08014.88
7.3.30.0030.07914.67
7.3.20.0130.07116.56
7.3.10.0070.07916.41
7.3.00.0110.07516.54
7.2.250.0070.08515.19
7.2.240.0070.08515.13
7.2.230.0030.08115.05
7.2.220.0070.07915.07
7.2.210.0000.08414.98
7.2.200.0070.07715.14
7.2.190.0060.07415.01
7.2.180.0030.07615.00
7.2.170.0100.07414.76
7.2.130.0070.08716.16
7.2.120.0100.08516.74
7.2.110.0030.09516.14
7.2.100.0160.07216.63
7.2.90.0130.07916.41
7.2.80.0030.07916.18
7.2.70.0130.07516.96
7.2.60.0070.08116.47
7.2.50.0070.07716.54
7.2.40.0030.09016.52
7.2.30.0100.07916.32
7.2.20.0100.07816.23
7.2.10.0100.08316.09
7.2.00.0130.07816.68
7.1.330.0030.08015.84
7.1.320.0070.07215.70
7.1.310.0100.07215.77
7.1.300.0000.08815.68
7.1.290.0070.07715.42
7.1.280.0060.07415.75
7.1.270.0030.07715.90
7.1.260.0030.07615.63
7.1.250.0100.08115.34
7.1.200.0030.07915.69
7.1.100.0030.08218.38
7.1.70.0000.07717.13
7.1.60.0130.13619.40
7.1.50.0100.12516.80
7.1.00.0030.17022.54
7.0.200.0030.07116.47
7.0.140.0100.16022.16
7.0.60.0070.15719.91
7.0.50.0030.10717.96
7.0.40.0130.17320.32
7.0.30.0570.15720.25
7.0.20.0400.14320.41
7.0.10.0070.16320.08
7.0.00.0030.17320.26
5.6.280.0070.17020.88
5.6.210.0070.17720.71
5.6.200.0030.11318.21
5.6.190.0130.12720.64
5.6.180.0270.16320.52
5.6.170.0200.11320.61
5.6.160.0100.12720.54
5.6.150.0030.10718.18
5.6.140.0030.10718.21
5.6.130.0070.14018.16
5.6.120.0030.13321.15
5.6.110.0030.17721.00
5.6.100.0100.16021.02
5.6.90.0170.16321.02
5.6.80.0100.16720.43
5.5.350.0100.14720.42
5.5.340.0000.14718.05
5.5.330.0030.11320.63
5.5.320.0300.10720.36
5.5.310.0200.11020.26
5.5.300.0070.17718.04
5.5.290.0100.13018.04
5.5.280.0100.17720.90
5.5.270.0000.11020.95
5.5.260.0030.18020.88
5.5.250.0100.10720.65
5.5.240.0230.13320.06
5.4.450.0130.07319.27
5.4.440.0030.08319.41
5.4.430.0100.07019.46
5.4.420.0000.08019.48
5.4.410.0030.05019.11
5.4.400.0100.07319.16
5.4.390.0130.06718.82
5.4.380.0070.04019.08
5.4.370.0100.06319.14
5.4.360.0030.04719.11
5.4.350.0170.07318.91
5.4.340.0070.06319.19
5.4.320.0000.05718.91
5.4.310.0130.04019.18
5.4.300.0070.06719.18
5.4.290.0170.06719.08
5.4.280.0070.07719.14
5.4.270.0170.05718.80
5.4.260.0100.07718.78
5.4.250.0130.06319.00
5.4.240.0100.05319.15
5.4.230.0000.05319.17
5.4.220.0070.04719.14
5.4.210.0100.04018.93
5.4.200.0130.04719.17
5.4.190.0070.08018.99
5.4.180.0130.06318.78
5.4.170.0100.07318.91
5.4.160.0100.07018.90
5.4.150.0000.04718.91
5.4.140.0070.07316.29
5.4.130.0000.04316.24
5.4.120.0030.08016.29
5.4.110.0170.06016.31
5.4.100.0070.07316.63
5.4.90.0100.04016.40
5.4.80.0000.06716.37
5.4.70.0130.07016.37
5.4.60.0070.06716.21
5.4.50.0030.04316.21
5.4.40.0070.03316.30
5.4.30.0000.03716.34
5.4.20.0030.03716.29
5.4.10.0030.03716.24
5.4.00.0000.03715.82
5.3.290.0070.07014.56
5.3.280.0100.03314.52
5.3.270.0130.06714.54
5.3.260.0100.06714.48
5.3.250.0030.08714.57
5.3.240.0000.05314.56
5.3.230.0070.05714.50
5.3.220.0070.05714.52
5.3.210.0070.06714.39
5.3.200.0100.07314.50
5.3.190.0070.08014.39
5.3.180.0000.08014.66
5.3.170.0000.04714.51
5.3.160.0100.06714.50
5.3.150.0030.04014.50
5.3.140.0030.03714.43
5.3.130.0070.03714.57
5.3.120.0000.04014.34
5.3.110.0030.03714.48
5.3.100.0100.03714.00
5.3.90.0070.03314.04
5.3.80.0000.04013.94
5.3.70.0070.03313.99
5.3.60.0030.03313.92
5.3.50.0000.03713.90
5.3.40.0030.03313.87
5.3.30.0000.03713.85
5.3.20.0030.03713.61
5.3.10.0070.03013.59
5.3.00.0000.03713.42
5.2.170.0100.03011.00
5.2.160.0030.02711.22
5.2.150.0030.02710.96
5.2.140.0030.02711.11
5.2.130.0030.03011.11
5.2.120.0000.03011.09
5.2.110.0070.02310.95
5.2.100.0030.02711.04
5.2.90.0000.03011.03
5.2.80.0070.02311.02
5.2.70.0000.03011.10
5.2.60.0000.03010.98
5.2.50.0000.03010.91
5.2.40.0000.03010.88
5.2.30.0070.02310.86
5.2.20.0030.02710.93
5.2.10.0070.02310.87
5.2.00.0030.03310.67
5.1.60.0070.0209.96
5.1.50.0030.0239.96
5.1.40.0000.02310.12
5.1.30.0000.02710.38
5.1.20.0100.02010.32
5.1.10.0000.02710.06
5.1.00.0000.03010.13
5.0.50.0030.0178.45
5.0.40.0070.0178.48
5.0.30.0030.0308.37
5.0.20.0000.0208.30
5.0.10.0030.0178.30
5.0.00.0030.0308.30
4.4.90.0070.0108.30
4.4.80.0030.0138.30
4.4.70.0000.0178.30
4.4.60.0030.0138.30
4.4.50.0000.0138.30
4.4.40.0000.0278.30
4.4.30.0000.0178.30
4.4.20.0030.0138.30
4.4.10.0000.0178.30
4.4.00.0000.0238.30
4.3.110.0000.0178.30
4.3.100.0000.0138.30
4.3.90.0030.0108.30
4.3.80.0000.0238.30
4.3.70.0000.0208.30
4.3.60.0030.0138.30
4.3.50.0030.0138.30
4.3.40.0030.0278.30
4.3.30.0070.0338.30
4.3.20.0000.0408.30
4.3.10.0000.0208.30
4.3.00.0000.0338.30

preferences:
39.95 ms | 401 KiB | 5 Q