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? => "; echo (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.0070.07019.32
7.1.100.0030.07318.14
7.1.70.0060.06216.89
7.1.60.0130.11919.17
7.1.50.0070.10016.91
7.1.00.0030.11022.40
7.0.200.0000.07016.75
7.0.140.0070.15322.18
7.0.100.0330.10719.96
7.0.90.0200.09019.89
7.0.80.0400.15019.91
7.0.70.0070.14719.99
7.0.60.0170.09320.00
7.0.50.0270.09720.44
7.0.40.0030.12720.07
7.0.30.0030.13020.18
7.0.20.0030.10320.10
7.0.10.0100.10320.09
7.0.00.0030.10320.13
5.6.280.0030.16320.80
5.6.250.0030.10320.62
5.6.240.0070.10020.69
5.6.230.0070.15020.49
5.6.220.0070.10020.53
5.6.210.0030.09720.59
5.6.200.0030.10321.06
5.6.190.0000.11021.08
5.6.180.0070.10021.04
5.6.170.0000.11020.96
5.6.160.0330.07321.08
5.6.150.0070.10021.05
5.6.140.0030.08321.05
5.6.130.0000.09721.13
5.6.120.0070.16720.96
5.6.110.0100.15021.02
5.6.100.0130.16321.03
5.6.90.0070.14721.05
5.6.80.0100.14720.51
5.6.70.0130.15320.36
5.6.60.0170.15720.48
5.6.50.0130.14720.44
5.6.40.0070.17020.36
5.6.30.0130.12720.52
5.6.20.0100.14720.52
5.6.10.0100.15720.34
5.6.00.0030.11320.25
5.5.380.0000.10320.44
5.5.370.0030.13720.52
5.5.360.0030.15720.52
5.5.350.0030.10320.41
5.5.340.0070.09020.88
5.5.330.0070.14020.81
5.5.320.0000.09320.86
5.5.310.0030.09320.63
5.5.300.0000.09320.91
5.5.290.0100.09720.91
5.5.280.0030.14720.83
5.5.270.0100.16320.78
5.5.260.0070.16020.90
5.5.250.0070.11320.64
5.5.240.0170.15720.16
5.5.230.0170.15720.18
5.5.220.0130.14020.24
5.5.210.0130.14720.29
5.5.200.0030.16320.26
5.5.190.0100.16020.15
5.5.180.0200.14719.98
5.5.160.0030.16720.27
5.5.150.0100.15020.21
5.5.140.0030.14720.25
5.5.130.0100.15320.24
5.5.120.0070.15720.11
5.5.110.0100.15720.25
5.5.100.0000.12020.08
5.5.90.0130.14020.14
5.5.80.0030.14720.12
5.5.70.0130.15320.20
5.5.60.0000.16719.93
5.5.50.0100.15320.08
5.5.40.0070.14720.10
5.5.30.0070.15320.00
5.5.20.0100.16019.92
5.5.10.0070.17020.04
5.5.00.0100.15320.06
5.4.450.0100.07719.47
5.4.440.0030.08319.23
5.4.430.0070.04319.27
5.4.420.0130.06019.37
5.4.410.0100.04719.26
5.4.400.0130.07319.04
5.4.390.0030.04318.95
5.4.380.0100.06319.07
5.4.370.0170.06319.06
5.4.360.0170.06718.82
5.4.350.0070.07019.06
5.4.340.0100.07018.79
5.4.320.0100.07718.96
5.4.310.0000.08019.10
5.4.300.0000.07718.92
5.4.290.0070.07318.81
5.4.280.0170.06719.04
5.4.270.0100.04319.11
5.4.260.0170.05719.07
5.4.250.0030.07018.98
5.4.240.0130.06318.99
5.4.230.0100.07319.05
5.4.220.0100.07318.94
5.4.210.0030.07718.91
5.4.200.0070.08018.81
5.4.190.0100.07319.08
5.4.180.0070.07718.94
5.4.170.0070.06018.78
5.4.160.0030.06018.92
5.4.150.0130.07319.05
5.4.140.0030.07316.37
5.4.130.0130.06716.36
5.4.120.0100.06316.30
5.4.110.0200.06316.29
5.4.100.0030.07316.36
5.4.90.0070.06316.43
5.4.80.0030.07716.37
5.4.70.0100.04316.40
5.4.60.0030.07316.23
5.4.50.0030.06016.38
5.4.40.0100.07016.46
5.4.30.0030.07716.30
5.4.20.0000.07716.34
5.4.10.0000.05016.36
5.4.00.0130.06715.72
5.3.290.0170.06714.66
5.3.280.0000.07714.60
5.3.270.0070.07014.43
5.3.260.0030.07314.55
5.3.250.0100.07314.47
5.3.240.0100.07314.47
5.3.230.0030.07314.58
5.3.220.0000.06014.54
5.3.210.0030.07314.39
5.3.200.0070.07714.57
5.3.190.0030.07714.52
5.3.180.0130.07014.42
5.3.170.0130.06714.44
5.3.160.0130.06714.57
5.3.150.0100.07014.52
5.3.140.0030.07714.38
5.3.130.0100.05714.55
5.3.120.0030.08014.48
5.3.110.0070.08014.41
5.3.100.0030.07714.03
5.3.90.0070.07314.00
5.3.80.0030.04313.95
5.3.70.0170.06714.00
5.3.60.0030.06013.87
5.3.50.0070.07013.93
5.3.40.0000.04713.85
5.3.30.0000.08013.91
5.3.20.0030.07013.68
5.3.10.0070.07313.66
5.3.00.0030.07313.42
5.2.170.0070.05011.06
5.2.160.0030.06011.19
5.2.150.0000.06711.11
5.2.140.0070.05311.13
5.2.130.0000.05711.05
5.2.120.0030.03311.08
5.2.110.0000.05711.02
5.2.100.0030.03310.92
5.2.90.0000.06311.06
5.2.80.0030.06310.89
5.2.70.0100.06011.12
5.2.60.0030.06711.00
5.2.50.0100.05310.89
5.2.40.0070.03710.89
5.2.30.0070.05710.92
5.2.20.0070.05710.96
5.2.10.0000.05710.89
5.2.00.0070.06010.89
5.1.60.0070.02710.89
5.1.50.0030.03710.89
5.1.40.0030.05010.89
5.1.30.0030.05010.89
5.1.20.0030.05710.89
5.1.10.0030.06710.89
5.1.00.0100.04310.89
5.0.50.0000.05310.89
5.0.40.0070.04010.89
5.0.30.0030.05710.89
5.0.20.0070.04010.89
5.0.10.0030.04310.89
5.0.00.0000.04310.89
4.4.90.0070.03010.89
4.4.80.0070.03010.89
4.4.70.0030.03310.89
4.4.60.0030.03710.89
4.4.50.0030.03010.89
4.4.40.0100.04010.89
4.4.30.0000.03710.89
4.4.20.0030.03310.89
4.4.10.0030.03310.89
4.4.00.0000.03010.89
4.3.110.0000.03710.89
4.3.100.0000.03710.89
4.3.90.0030.03310.89
4.3.80.0000.05310.89
4.3.70.0070.03010.89
4.3.60.0070.02710.89
4.3.50.0070.02310.89
4.3.40.0030.04310.89
4.3.30.0000.03710.89
4.3.20.0000.04010.89
4.3.10.0030.03310.89
4.3.00.0000.03710.89

preferences:
34.05 ms | 401 KiB | 5 Q