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));

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.07219.34
7.1.100.0070.06717.95
7.1.70.0070.06817.00
7.1.60.0130.12419.17
7.1.50.0070.08616.64
7.1.00.0100.15722.44
7.0.200.0000.07216.68
7.0.140.0030.15722.18
7.0.100.0200.12719.93
7.0.90.0070.11719.90
7.0.80.0030.09319.91
7.0.70.0000.09319.94
7.0.60.0070.14019.95
7.0.50.0130.14320.29
7.0.40.0130.14720.18
7.0.30.0100.13020.05
7.0.20.0030.15719.95
7.0.10.0000.09720.17
7.0.00.0130.13020.02
5.6.280.0070.16021.05
5.6.250.0170.16020.75
5.6.240.0100.10720.59
5.6.230.0030.09320.71
5.6.220.0000.13020.73
5.6.210.0030.13020.55
5.6.200.0070.10321.07
5.6.190.0070.14020.96
5.6.180.0000.11321.03
5.6.170.0130.16721.04
5.6.160.0130.16321.03
5.6.150.0070.08720.97
5.6.140.0130.15021.03
5.6.130.0070.16020.90
5.6.120.0000.18721.16
5.6.110.0030.16721.02
5.6.100.0100.14321.04
5.6.90.0100.16021.12
5.6.80.0030.13020.43
5.6.70.0100.17320.38
5.6.60.0030.18020.33
5.6.50.0030.17020.51
5.6.40.0170.15720.52
5.6.30.0070.17320.36
5.6.20.0100.11020.49
5.6.10.0070.14320.43
5.6.00.0100.12720.32
5.5.380.0100.14320.34
5.5.370.0030.09320.39
5.5.360.0070.15020.42
5.5.350.0100.13020.39
5.5.340.0070.09020.80
5.5.330.0100.15320.89
5.5.320.0030.17320.63
5.5.310.0070.09020.89
5.5.300.0130.14320.95
5.5.290.0030.09720.79
5.5.280.0030.11720.88
5.5.270.0170.16720.90
5.5.260.0030.11020.85
5.5.250.0030.12720.71
5.5.240.0030.16020.27
5.5.230.0100.17020.29
5.5.220.0100.16720.32
5.5.210.0070.16320.13
5.5.200.0170.16020.25
5.5.190.0000.11720.13
5.5.180.0070.15020.20
5.5.160.0030.17020.20
5.5.150.0100.12320.23
5.5.140.0170.10320.26
5.5.130.0070.12320.11
5.5.120.0070.14320.15
5.5.110.0130.10020.25
5.5.100.0100.16020.04
5.5.90.0000.09720.09
5.5.80.0070.15320.05
5.5.70.0070.10720.08
5.5.60.0100.14720.02
5.5.50.0070.14720.11
5.5.40.0070.09720.05
5.5.30.0130.14320.17
5.5.20.0070.08720.11
5.5.10.0170.14320.00
5.5.00.0170.14019.99
5.4.450.0070.08019.57
5.4.440.0000.04319.40
5.4.430.0000.05319.37
5.4.420.0130.06719.43
5.4.410.0070.07719.10
5.4.400.0130.07018.79
5.4.390.0000.06319.12
5.4.380.0100.07319.05
5.4.370.0030.08019.09
5.4.360.0070.07319.10
5.4.350.0170.07019.07
5.4.340.0000.04319.06
5.4.320.0000.07719.11
5.4.310.0000.04318.95
5.4.300.0000.08319.09
5.4.290.0070.07018.80
5.4.280.0030.07019.02
5.4.270.0070.07718.80
5.4.260.0070.07319.11
5.4.250.0000.04018.97
5.4.240.0070.07319.13
5.4.230.0170.06019.06
5.4.220.0100.07318.75
5.4.210.0070.03318.89
5.4.200.0070.03019.13
5.4.190.0030.03718.77
5.4.180.0100.06718.97
5.4.170.0030.06319.10
5.4.160.0130.05019.10
5.4.150.0030.07719.12
5.4.140.0070.06316.29
5.4.130.0030.07716.28
5.4.120.0100.07016.32
5.4.110.0170.06316.22
5.4.100.0100.07016.26
5.4.90.0130.06316.42
5.4.80.0100.06716.20
5.4.70.0130.06716.20
5.4.60.0000.07016.20
5.4.50.0070.03316.28
5.4.40.0030.07016.46
5.4.30.0070.03716.19
5.4.20.0100.07316.27
5.4.10.0030.03716.19
5.4.00.0070.06715.71
5.3.290.0030.05014.53
5.3.280.0030.05314.53
5.3.270.0070.07314.46
5.3.260.0000.07314.59
5.3.250.0100.07014.46
5.3.240.0070.06714.59
5.3.230.0170.06714.54
5.3.220.0070.07014.47
5.3.210.0070.06714.57
5.3.200.0100.07014.52
5.3.190.0130.07314.52
5.3.180.0030.07714.41
5.3.170.0070.07714.47
5.3.160.0030.04314.38
5.3.150.0130.07314.52
5.3.140.0170.06314.51
5.3.130.0100.08014.53
5.3.120.0030.07014.49
5.3.110.0070.04014.50
5.3.100.0070.06714.03
5.3.90.0070.04314.00
5.3.80.0100.06713.77
5.3.70.0130.05714.03
5.3.60.0030.04313.98
5.3.50.0170.05713.90
5.3.40.0030.07713.79
5.3.30.0070.07013.87
5.3.20.0070.06313.65
5.3.10.0030.07013.64
5.3.00.0030.03313.42
5.2.170.0100.05712.29
5.2.160.0030.03712.29
5.2.150.0070.04012.29
5.2.140.0000.06012.29
5.2.130.0030.05712.29
5.2.120.0070.06312.29
5.2.110.0070.03712.29
5.2.100.0100.06312.29
5.2.90.0100.03312.29
5.2.80.0070.03712.29
5.2.70.0070.03012.29
5.2.60.0070.03012.29
5.2.50.0030.04312.29
5.2.40.0000.03012.29
5.2.30.0070.05712.29
5.2.20.0000.05712.29
5.2.10.0130.05012.29
5.2.00.0000.03312.29
5.1.60.0070.02712.29
5.1.50.0030.04712.29
5.1.40.0030.05012.29
5.1.30.0000.03312.29
5.1.20.0170.04312.29
5.1.10.0070.05312.29
5.1.00.0030.05012.29
5.0.50.0170.03312.29
5.0.40.0030.02312.29
5.0.30.0030.06012.29
5.0.20.0000.04712.29
5.0.10.0130.03012.29
5.0.00.0000.06312.29
4.4.90.0030.03312.29
4.4.80.0030.03712.29
4.4.70.0000.03712.29
4.4.60.0070.03312.29
4.4.50.0000.02312.29
4.4.40.0030.05312.29
4.4.30.0000.02012.29
4.4.20.0030.03312.29
4.4.10.0000.03712.29
4.4.00.0030.02712.29
4.3.110.0000.03712.29
4.3.100.0030.01712.29
4.3.90.0030.03312.29
4.3.80.0070.04712.29
4.3.70.0000.03712.29
4.3.60.0030.03312.29
4.3.50.0030.02712.29
4.3.40.0000.05312.29
4.3.30.0000.03712.29
4.3.20.0000.04012.29
4.3.10.0000.03012.29
4.3.00.0000.03312.29

preferences:
33.32 ms | 400 KiB | 5 Q