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); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_DEFAULT,$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.0130.07814.65
7.3.120.0030.08814.68
7.3.110.0070.08315.04
7.3.100.0100.07114.91
7.3.90.0030.08014.75
7.3.80.0130.07314.98
7.3.70.0130.06814.86
7.3.60.0000.07814.82
7.3.50.0070.07714.53
7.3.40.0070.07514.81
7.3.30.0030.08014.66
7.3.20.0070.07616.81
7.3.10.0070.07716.63
7.3.00.0030.07716.60
7.2.250.0070.08514.91
7.2.240.0100.08115.09
7.2.230.0070.08114.85
7.2.220.0000.08215.10
7.2.210.0000.08215.02
7.2.200.0000.08114.77
7.2.190.0070.07214.74
7.2.180.0000.08014.77
7.2.170.0030.08115.00
7.2.60.0070.07816.72
7.2.00.0070.07819.06
7.1.330.0130.06916.00
7.1.320.0030.07915.71
7.1.310.0030.07415.89
7.1.300.0000.08015.66
7.1.290.0030.07515.73
7.1.280.0070.07815.80
7.1.270.0100.07315.78
7.1.260.0000.07915.67
7.1.200.0100.07115.88
7.1.100.0070.07517.88
7.1.70.0000.09617.22
7.1.60.0070.07919.33
7.1.50.0030.14216.90
7.1.00.0130.16722.39
7.0.200.0030.07316.64
7.0.140.0030.17022.02
7.0.100.0300.10019.89
7.0.90.0170.16319.89
7.0.80.0170.17319.86
7.0.70.0300.21319.96
7.0.60.0230.11019.95
7.0.50.0170.17320.26
7.0.40.0130.15020.10
7.0.30.0130.15720.21
7.0.20.0070.18320.07
7.0.10.0200.13320.16
7.0.00.0070.15320.09
5.6.280.0100.16321.07
5.6.250.0170.15720.59
5.6.240.0230.15020.55
5.6.230.0170.16020.60
5.6.220.0030.15320.59
5.6.210.0130.14320.63
5.6.200.0100.18321.14
5.6.190.0070.18320.99
5.6.180.0100.17020.95
5.6.170.0130.16721.05
5.6.160.0070.19021.03
5.6.150.0030.11321.00
5.6.140.0070.16021.04
5.6.130.0100.16021.05
5.6.120.0100.13321.12
5.6.110.0100.17321.03
5.6.100.0070.12021.06
5.6.90.0200.17320.98
5.6.80.0070.18320.52
5.6.70.0100.16720.38
5.6.60.0070.17320.42
5.6.50.0100.15020.55
5.6.40.0130.16020.52
5.6.30.0100.16720.44
5.6.20.0000.18720.38
5.6.10.0000.12320.52
5.6.00.0030.14720.39
5.5.380.0030.17020.40
5.5.370.0170.17020.40
5.5.360.0070.16320.31
5.5.350.0100.17720.33
5.5.340.0070.15720.88
5.5.330.0030.16720.79
5.5.320.0130.14320.64
5.5.310.0130.17020.79
5.5.300.0170.15320.78
5.5.290.0030.17320.64
5.5.280.0130.15720.89
5.5.270.0170.16020.77
5.5.260.0100.16320.84
5.5.250.0100.15720.64
5.5.240.0070.12020.27
5.5.230.0070.13320.14
5.5.220.0100.17320.33
5.5.210.0130.14320.29
5.5.200.0030.13020.21
5.5.190.0070.14720.20
5.5.180.0000.16020.26
5.5.160.0070.09320.10
5.5.150.0100.14020.10
5.5.140.0070.09320.18
5.5.130.0000.18320.11
5.5.120.0030.16020.23
5.5.110.0030.14720.14
5.5.100.0200.14320.09
5.5.90.0100.16020.21
5.5.80.0170.11020.19
5.5.70.0100.16020.08
5.5.60.0070.14020.11
5.5.50.0030.14320.09
5.5.40.0070.16020.07
5.5.30.0030.15720.02
5.5.20.0000.15020.07
5.5.10.0130.14720.00
5.5.00.0030.14020.05
5.4.450.0070.08019.43
5.4.440.0000.06719.11
5.4.430.0170.06719.45
5.4.420.0100.06319.28
5.4.410.0070.08019.23
5.4.400.0030.07719.01
5.4.390.0030.07718.97
5.4.380.0030.08019.05
5.4.370.0070.08718.98
5.4.360.0030.04318.83
5.4.350.0070.06318.96
5.4.340.0100.06719.13
5.4.320.0000.05018.97
5.4.310.0130.02718.94
5.4.300.0100.07318.90
5.4.290.0030.03719.14
5.4.280.0030.05319.25
5.4.270.0200.07019.06
5.4.260.0070.07018.96
5.4.250.0130.08318.77
5.4.240.0100.03019.09
5.4.230.0100.05719.11
5.4.220.0070.08018.78
5.4.210.0030.05718.77
5.4.200.0030.07719.06
5.4.190.0030.07719.05
5.4.180.0100.07719.02
5.4.170.0070.10019.09
5.4.160.0070.08018.94
5.4.150.0070.04019.05
5.4.140.0100.07316.02
5.4.130.0100.06316.27
5.4.120.0130.07016.31
5.4.110.0070.03316.42
5.4.100.0070.07316.25
5.4.90.0100.03716.23
5.4.80.0000.05016.40
5.4.70.0070.07016.20
5.4.60.0070.07316.23
5.4.50.0000.07016.18
5.4.40.0100.05016.25
5.4.30.0130.05716.30
5.4.20.0000.07316.32
5.4.10.0070.07316.30
5.4.00.0030.06315.68
5.3.290.0070.05014.57
5.3.280.0130.02714.45
5.3.270.0100.07714.44
5.3.260.0130.06714.61
5.3.250.0100.07314.44
5.3.240.0030.07714.55
5.3.230.0030.04014.59
5.3.220.0030.07314.52
5.3.210.0070.06314.43
5.3.200.0130.07014.38
5.3.190.0030.08014.55
5.3.180.0030.08014.38
5.3.170.0100.04314.38
5.3.160.0070.08014.40
5.3.150.0100.07314.48
5.3.140.0030.07014.51
5.3.130.0100.03714.56
5.3.120.0100.07714.52
5.3.110.0130.06714.54
5.3.100.0070.07713.89
5.3.90.0170.05313.97
5.3.80.0100.07713.88
5.3.70.0030.07013.95
5.3.60.0070.05713.96
5.3.50.0070.04013.89
5.3.40.0070.07013.80
5.3.30.0030.08013.84
5.3.20.0100.06313.63
5.3.10.0000.06313.56
5.3.00.0130.06713.57
5.2.170.0000.04012.51
5.2.160.0000.04312.51
5.2.150.0030.04312.51
5.2.140.0200.03312.51
5.2.130.0030.06012.51
5.2.120.0030.06312.51
5.2.110.0000.06712.51
5.2.100.0030.06012.51
5.2.90.0030.06312.51
5.2.80.0070.05712.51
5.2.70.0130.04312.51
5.2.60.0100.02712.51
5.2.50.0030.03712.51
5.2.40.0070.03012.51
5.2.30.0030.04312.51
5.2.20.0100.03012.51
5.2.10.0030.02712.51
5.2.00.0000.02712.51
5.1.60.0000.03312.51
5.1.50.0030.02312.51
5.1.40.0030.02312.51
5.1.30.0000.02712.51
5.1.20.0030.02312.51
5.1.10.0030.02712.51
5.1.00.0030.03012.51
5.0.50.0000.02312.51
5.0.40.0000.02012.51
5.0.30.0000.03012.51
5.0.20.0070.01712.51
5.0.10.0000.02012.51
5.0.00.0000.03012.51
4.4.90.0070.01312.51
4.4.80.0000.01712.51
4.4.70.0000.02712.51
4.4.60.0000.01712.51
4.4.50.0000.01712.51
4.4.40.0000.02312.51
4.4.30.0000.02312.51
4.4.20.0000.01712.51
4.4.10.0030.01312.51
4.4.00.0000.02312.51
4.3.110.0000.03012.51
4.3.100.0000.01712.51
4.3.90.0030.01312.51
4.3.80.0030.02312.51
4.3.70.0000.02312.51
4.3.60.0000.01712.51
4.3.50.0030.01712.51
4.3.40.0000.02312.51
4.3.30.0030.01012.51
4.3.20.0000.03012.51
4.3.10.0000.01312.51
4.3.00.0030.01712.51

preferences:
32.89 ms | 401 KiB | 5 Q