3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'mypassword'; $hash = password_hash($password); 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.3.120.0060.01214.94
7.3.110.0070.01014.95
7.3.100.0040.01414.82
7.3.90.0030.00614.96
7.3.80.0060.00614.68
7.3.70.0070.00714.43
7.3.60.0050.00514.91
7.3.50.0030.01014.52
7.3.40.0120.00314.62
7.3.30.0060.00314.71
7.3.20.0050.00316.64
7.3.10.0030.01016.54
7.3.00.0080.00416.76
7.2.240.0100.00714.72
7.2.230.0070.01015.01
7.2.220.0060.00615.22
7.2.210.0040.01115.04
7.2.200.0060.01015.16
7.2.190.0090.00614.95
7.2.180.0130.00314.98
7.2.170.0100.00715.02
7.2.160.0100.00615.15
7.2.150.0060.00616.99
7.2.140.0000.01216.71
7.2.130.0030.01316.81
7.2.120.0110.00716.61
7.2.110.0120.00416.83
7.2.100.0090.00416.74
7.2.90.0000.01617.12
7.2.80.0060.00817.03
7.2.70.0120.00316.92
7.2.60.0100.00316.92
7.2.50.0000.01216.74
7.2.40.0060.00916.65
7.2.30.0030.01316.75
7.2.20.0070.00716.98
7.2.10.0060.00316.94
7.2.00.0060.00316.84
7.1.330.0090.00315.59
7.1.320.0040.01115.67
7.1.310.0070.00715.55
7.1.300.0100.00315.75
7.1.290.0100.00315.76
7.1.280.0030.01415.40
7.1.270.0080.00515.76
7.1.260.0040.00815.70
7.1.250.0040.01115.48
7.1.200.0080.00415.81
7.1.70.0040.01117.06
7.1.60.0030.02119.17
7.1.50.0090.01216.89
7.1.00.0000.05722.30
7.0.200.0120.00616.71
7.0.140.0000.07721.99
7.0.100.0170.07319.94
7.0.90.0100.07319.84
7.0.80.0030.04319.89
7.0.70.0030.04319.86
7.0.60.0130.03020.00
7.0.50.0100.07320.38
7.0.40.0070.08320.08
7.0.30.0070.06320.15
7.0.20.0100.07720.14
7.0.10.0100.07320.05
7.0.00.0030.08020.05
5.6.280.0070.07021.09
5.6.250.0030.07720.59
5.6.240.0030.06020.65
5.6.230.0100.08320.57
5.6.220.0000.07720.60
5.6.210.0100.06020.71
5.6.200.0130.06721.05
5.6.190.0130.07721.05
5.6.180.0070.07721.07
5.6.170.0100.07721.13
5.6.160.0100.07721.07
5.6.150.0030.08021.08
5.6.140.0130.07321.04
5.6.130.0070.08320.93
5.6.120.0070.07721.13
5.6.110.0170.07320.94
5.6.100.0100.07721.06
5.6.90.0070.07320.98
5.6.80.0100.06020.46
5.6.70.0070.08020.31
5.6.60.0030.05020.40
5.6.50.0070.07320.41
5.6.40.0100.08020.52
5.6.30.0070.07720.40
5.6.20.0100.04720.36
5.6.10.0100.08020.39
5.6.00.0000.07720.37
5.5.380.0100.07320.45
5.5.370.0170.07020.39
5.5.360.0070.08320.35
5.5.350.0030.08020.42
5.5.340.0030.07320.84
5.5.330.0100.04320.80
5.5.320.0070.08720.82
5.5.310.0070.05720.91
5.5.300.0070.08020.88
5.5.290.0100.07720.86
5.5.280.0200.07320.87
5.5.270.0030.05320.86
5.5.260.0130.08020.77
5.5.250.0130.07320.60
5.5.240.0030.09020.29
5.5.230.0070.07720.25
5.5.220.0070.06320.14
5.5.210.0070.07720.15
5.5.200.0070.07720.21
5.5.190.0100.08020.14
5.5.180.0100.05320.23
5.5.160.0100.06320.14
5.5.150.0170.06720.14
5.5.140.0070.08020.12
5.5.130.0070.07720.14
5.5.120.0070.04720.25
5.5.110.0030.08320.04
5.5.100.0070.07020.16
5.5.90.0070.04320.12
5.5.80.0130.07320.05
5.5.70.0030.04320.08
5.5.60.0130.07719.99
5.5.50.0130.06719.95
5.5.40.0100.04020.04
5.5.30.0170.07020.08
5.5.20.0100.04720.14
5.5.10.0070.06720.11
5.5.00.0130.07019.96
5.4.450.0030.06319.47
5.4.440.0100.07719.11
5.4.430.0070.05319.37
5.4.420.0100.08019.14
5.4.410.0070.08019.09
5.4.400.0000.06319.10
5.4.390.0070.04718.95
5.4.380.0030.07318.97
5.4.370.0070.07719.09
5.4.360.0100.07319.12
5.4.350.0130.06018.83
5.4.340.0030.07718.97
5.4.320.0130.06319.03
5.4.310.0070.07319.13
5.4.300.0030.07718.79
5.4.290.0070.08018.95
5.4.280.0070.08019.22
5.4.270.0070.07018.96
5.4.260.0100.07019.12
5.4.250.0000.08018.96
5.4.240.0130.06319.21
5.4.230.0070.08019.05
5.4.220.0070.03719.14
5.4.210.0100.03318.96
5.4.200.0030.07319.21
5.4.190.0100.07019.11
5.4.180.0000.08019.02
5.4.170.0070.07319.11
5.4.160.0100.07319.04
5.4.150.0070.08018.95
5.4.140.0070.05016.32
5.4.130.0130.03716.25
5.4.120.0100.06716.32
5.4.110.0070.07016.44
5.4.100.0070.07716.21
5.4.90.0100.06716.20
5.4.80.0030.07716.37
5.4.70.0070.07316.21
5.4.60.0100.07016.28
5.4.50.0070.07016.23
5.4.40.0130.06716.34
5.4.30.0030.08016.23
5.4.20.0130.06316.36
5.4.10.0200.05016.32
5.4.00.0070.04715.73
5.3.290.0070.07314.48
5.3.280.0070.07714.59
5.3.270.0070.07714.54
5.3.260.0130.07014.58
5.3.250.0030.07714.51
5.3.240.0100.07314.51
5.3.230.0030.06714.59
5.3.220.0130.05714.57
5.3.210.0100.07714.42
5.3.200.0070.07014.50
5.3.190.0100.05014.41
5.3.180.0070.03314.54
5.3.170.0000.08714.40
5.3.160.0130.06714.41
5.3.150.0070.06714.55
5.3.140.0030.08014.55
5.3.130.0130.06314.40
5.3.120.0130.06714.37
5.3.110.0130.06314.54
5.3.100.0070.07013.97
5.3.90.0000.08313.97
5.3.80.0130.06713.87
5.3.70.0230.04314.00
5.3.60.0030.07313.86
5.3.50.0030.07713.93
5.3.40.0170.07013.94
5.3.30.0030.07313.76
5.3.20.0130.04013.55
5.3.10.0030.07313.62
5.3.00.0070.04313.52
5.2.170.0070.06311.09
5.2.160.0130.05011.01
5.2.150.0030.04010.94
5.2.140.0070.06010.98
5.2.130.0100.05710.95
5.2.120.0000.04011.12
5.2.110.0000.06311.08
5.2.100.0030.04711.02
5.2.90.0030.06711.10
5.2.80.0070.06011.15
5.2.70.0100.05311.09
5.2.60.0100.06011.10
5.2.50.0100.05010.88
5.2.40.0000.06010.84
5.2.30.0030.05710.80
5.2.20.0070.06010.97
5.2.10.0100.05310.88
5.2.00.0070.06010.75
5.1.60.0100.04710.39
5.1.50.0100.05010.39
5.1.40.0100.05010.39
5.1.30.0030.05710.39
5.1.20.0130.05010.39
5.1.10.0100.05010.39
5.1.00.0000.06010.39
5.0.50.0000.03010.39
5.0.40.0070.02710.39
5.0.30.0030.06310.39
5.0.20.0030.03310.39
5.0.10.0000.04710.39
5.0.00.0100.05710.39
4.4.90.0000.04010.39
4.4.80.0070.03310.39
4.4.70.0030.03310.39
4.4.60.0030.03310.39
4.4.50.0030.03710.39
4.4.40.0000.05710.39
4.4.30.0030.02010.39
4.4.20.0000.04010.39
4.4.10.0100.02710.39
4.4.00.0000.05710.39
4.3.110.0030.03310.39
4.3.100.0000.02310.39
4.3.90.0070.03010.39
4.3.80.0030.05310.39
4.3.70.0030.02710.39
4.3.60.0030.03010.39
4.3.50.0030.04010.39
4.3.40.0070.04010.39
4.3.30.0030.02010.39
4.3.20.0030.03010.39
4.3.10.0000.03310.39
4.3.00.0030.03310.39

preferences:
40.54 ms | 401 KiB | 5 Q