3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'mypassword'; $hash = password_hash($password, PASSWORD_DEFAULT); var_dump(password_get_info($hash)); echo "Password needs rehash? => " . (password_needs_rehash($hash, PASSWORD_DEFAULT)) ? 'yes':'no';

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.0030.07419.31
7.1.100.0000.07518.24
7.1.70.0030.06716.94
7.1.60.0070.12519.17
7.1.50.0070.12716.89
7.1.00.0030.15722.57
7.0.200.0230.07416.69
7.0.140.0000.16321.95
7.0.100.0070.15719.94
7.0.90.0200.10020.00
7.0.80.0170.15719.93
7.0.70.0270.16020.02
7.0.60.0130.10019.95
7.0.50.0030.10320.32
7.0.40.0100.08020.01
7.0.30.0030.09320.04
7.0.20.0030.09020.11
7.0.10.0000.09320.07
7.0.00.0070.10020.17
5.6.280.0130.15321.14
5.6.250.0070.15320.77
5.6.240.0100.16320.67
5.6.230.0100.14720.58
5.6.220.0130.16020.67
5.6.210.0070.10020.65
5.6.200.0000.11020.99
5.6.190.0000.10721.07
5.6.180.0030.10020.94
5.6.170.0030.11721.16
5.6.160.0030.09321.03
5.6.150.0170.07321.02
5.6.140.0030.08721.05
5.6.130.0200.08320.99
5.6.120.0070.08721.07
5.6.110.0000.10720.94
5.6.100.0130.12721.04
5.6.90.0070.08720.92
5.6.80.0030.10720.46
5.6.70.0000.08720.52
5.6.60.0070.13720.36
5.6.50.0070.15720.43
5.6.40.0270.14020.40
5.6.30.0130.13720.36
5.6.20.0030.10020.39
5.6.10.0070.11720.34
5.6.00.0000.17720.30
5.5.380.0000.10320.56
5.5.370.0100.16720.41
5.5.360.0100.15320.51
5.5.350.0100.16020.41
5.5.340.0030.09020.89
5.5.330.0070.10720.88
5.5.320.0030.12020.79
5.5.310.0070.08320.82
5.5.300.0070.10020.79
5.5.290.0070.16320.89
5.5.280.0000.09020.94
5.5.270.0030.10320.87
5.5.260.0070.10020.89
5.5.250.0070.10320.55
5.5.240.0370.06320.18
5.5.230.0070.10320.15
5.5.220.0070.08720.33
5.5.210.0030.16020.25
5.5.200.0130.12720.12
5.5.190.0100.17020.24
5.5.180.0000.09320.15
5.5.160.0100.12020.14
5.5.150.0070.16720.20
5.5.140.0200.16020.26
5.5.130.0000.15320.17
5.5.120.0170.14320.14
5.5.110.0100.14020.10
5.5.100.0130.16020.10
5.5.90.0030.12320.13
5.5.80.0130.08019.90
5.5.70.0170.14720.02
5.5.60.0100.08320.03
5.5.50.0070.14720.07
5.5.40.0070.16020.11
5.5.30.0070.12720.10
5.5.20.0070.09720.08
5.5.10.0030.17020.00
5.5.00.0030.14320.04
5.4.450.0030.04319.45
5.4.440.0000.04019.29
5.4.430.0030.03319.46
5.4.420.0000.03719.30
5.4.410.0030.03319.14
5.4.400.0030.03019.12
5.4.390.0070.04719.12
5.4.380.0070.07318.80
5.4.370.0030.06318.81
5.4.360.0070.03719.07
5.4.350.0030.06718.96
5.4.340.0100.07019.14
5.4.320.0130.07018.90
5.4.310.0130.07019.07
5.4.300.0070.07319.02
5.4.290.0100.06319.07
5.4.280.0030.03719.02
5.4.270.0100.07018.90
5.4.260.0100.07319.12
5.4.250.0030.07319.07
5.4.240.0000.08018.79
5.4.230.0100.03018.77
5.4.220.0100.06718.98
5.4.210.0000.05018.93
5.4.200.0070.06318.80
5.4.190.0030.05719.11
5.4.180.0100.06718.95
5.4.170.0000.05719.04
5.4.160.0130.06719.12
5.4.150.0070.05318.92
5.4.140.0070.07016.37
5.4.130.0000.04716.26
5.4.120.0000.04316.28
5.4.110.0000.04016.42
5.4.100.0170.05016.36
5.4.90.0070.07316.30
5.4.80.0030.07316.19
5.4.70.0130.05316.19
5.4.60.0070.05316.40
5.4.50.0030.05716.23
5.4.40.0030.04016.40
5.4.30.0000.06716.18
5.4.20.0100.03716.23
5.4.10.0000.07016.23
5.4.00.0130.06315.81
5.3.290.0070.07014.63
5.3.280.0130.06314.45
5.3.270.0030.07714.43
5.3.260.0030.07314.52
5.3.250.0130.06714.61
5.3.240.0030.04714.56
5.3.230.0130.06314.59
5.3.220.0000.07014.53
5.3.210.0030.06314.55
5.3.200.0030.08314.50
5.3.190.0100.07014.43
5.3.180.0030.07014.50
5.3.170.0100.07314.42
5.3.160.0070.03314.57
5.3.150.0100.07314.52
5.3.140.0170.06314.54
5.3.130.0030.04314.50
5.3.120.0070.04314.50
5.3.110.0000.05714.45
5.3.100.0070.07713.98
5.3.90.0070.06713.84
5.3.80.0030.07013.97
5.3.70.0000.03714.01
5.3.60.0000.03713.97
5.3.50.0000.05713.95
5.3.40.0070.03313.79
5.3.30.0070.06713.84
5.3.20.0030.04013.44
5.3.10.0030.07313.64
5.3.00.0070.03313.50
5.2.170.0030.03312.25
5.2.160.0070.05012.25
5.2.150.0100.05312.25
5.2.140.0000.04312.25
5.2.130.0070.06012.25
5.2.120.0070.05012.25
5.2.110.0000.06712.25
5.2.100.0100.05012.25
5.2.90.0030.03712.25
5.2.80.0070.06712.25
5.2.70.0030.05312.25
5.2.60.0030.05012.25
5.2.50.0070.04312.25
5.2.40.0070.05312.25
5.2.30.0070.05012.25
5.2.20.0070.05012.25
5.2.10.0000.04012.25
5.2.00.0030.04312.25
5.1.60.0070.04012.25
5.1.50.0070.03012.25
5.1.40.0070.05012.25
5.1.30.0030.05712.25
5.1.20.0000.05012.25
5.1.10.0030.05712.25
5.1.00.0030.05012.25
5.0.50.0070.04712.25
5.0.40.0000.02712.25
5.0.30.0030.04012.25
5.0.20.0030.04312.25
5.0.10.0070.03712.25
5.0.00.0000.05312.25
4.4.90.0030.03712.25
4.4.80.0030.03312.25
4.4.70.0130.02712.25
4.4.60.0070.02712.25
4.4.50.0030.03012.25
4.4.40.0070.05312.25
4.4.30.0070.02312.25
4.4.20.0000.01712.25
4.4.10.0030.02712.25
4.4.00.0030.03712.25
4.3.110.0000.03312.25
4.3.100.0070.02712.25
4.3.90.0030.03012.25
4.3.80.0070.04012.25
4.3.70.0070.03012.25
4.3.60.0030.03012.25
4.3.50.0070.02312.25
4.3.40.0030.02712.25
4.3.30.0030.03312.25
4.3.20.0000.03012.25
4.3.10.0030.03012.25
4.3.00.0030.03312.25

preferences:
34.9 ms | 401 KiB | 5 Q