3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; if (password_verify('me', $hash)){ if (password_needs_rehash($hash, PASSWORD_DEFAULT)){ $hash = password_hash($pass, PASSWORD_DEFAULT); } } //echo password_verify($pass, $hash)."\n"; echo $hash."\n";

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.10.0140.00716.52
7.4.00.0130.00515.66
7.3.130.0100.01016.27
7.3.120.0100.00815.54
7.3.110.0080.00915.40
7.3.100.0070.01015.38
7.3.90.0090.00715.52
7.3.80.0060.01115.58
7.3.70.0040.01015.56
7.3.60.0000.01515.49
7.3.50.0070.00815.38
7.3.40.0040.01315.49
7.3.30.0070.00715.47
7.3.20.0060.01017.37
7.3.10.0100.00317.25
7.3.00.0080.01017.28
7.2.260.0120.00916.71
7.2.250.0100.00915.84
7.2.240.0050.01415.77
7.2.230.0110.00915.79
7.2.220.0080.00815.94
7.2.210.0050.01215.53
7.2.200.0040.01315.67
7.2.190.0070.01215.77
7.2.180.0060.01015.74
7.2.170.0040.01315.80
7.2.160.0070.00716.30
7.2.150.0090.00618.32
7.2.140.0090.00618.36
7.2.130.0110.00818.36
7.2.120.0120.00518.28
7.2.110.0120.00918.28
7.2.100.0080.01218.15
7.2.90.0090.00918.35
7.2.80.0070.01118.40
7.2.70.0040.01118.36
7.2.60.0070.00817.57
7.2.50.0090.00618.19
7.2.40.0030.00918.23
7.2.30.0090.00918.40
7.2.20.0080.00618.40
7.2.10.0090.00918.23
7.2.00.0070.00918.81
7.1.330.0050.01116.56
7.1.320.0050.01116.67
7.1.310.0080.00916.37
7.1.300.0050.01216.61
7.1.290.0120.00316.44
7.1.280.0050.00916.61
7.1.270.0050.00916.44
7.1.260.0020.01116.41
7.1.250.0110.00817.12
7.1.240.0030.01617.34
7.1.230.0100.00517.14
7.1.220.0030.01217.17
7.1.210.0070.01117.23
7.1.200.0020.01316.43
7.1.190.0080.00617.17
7.1.180.0040.00717.13
7.1.170.0070.01017.38
7.1.160.0150.00017.12
7.1.150.0100.01017.26
7.1.140.0030.01217.07
7.1.130.0090.00317.17
7.1.120.0030.01317.24
7.1.110.0030.01017.38
7.1.100.0080.01117.76
7.1.90.0080.00417.15
7.1.80.0100.00317.21
7.1.70.0060.00717.23
7.1.60.0090.01118.30
7.1.50.0070.01216.89
7.1.40.0060.00917.34
7.1.30.0040.01417.24
7.1.20.0100.00717.27
7.1.10.0030.01017.23
7.1.00.0020.04319.66
7.0.330.0150.00016.82
7.0.320.0100.01016.79
7.0.310.0040.00816.86
7.0.300.0030.00617.00
7.0.290.0060.00817.07
7.0.280.0060.00916.78
7.0.270.0080.00516.91
7.0.260.0060.00616.89
7.0.250.0070.00716.74
7.0.240.0030.01217.05
7.0.230.0040.01117.13
7.0.220.0090.00617.03
7.0.210.0090.00617.02
7.0.200.2300.00915.72
7.0.190.0030.01416.92
7.0.180.0060.01217.10
7.0.170.0040.01017.16
7.0.160.0060.00317.04
7.0.150.0030.01316.93
7.0.140.0040.01417.07
7.0.130.0030.00717.05
7.0.120.0060.00616.93
7.0.110.0100.00316.90
7.0.100.0110.00316.66
7.0.90.0100.00616.79
7.0.80.0040.00816.74
7.0.70.0030.01016.79
7.0.60.0080.04618.41
7.0.50.0050.04717.31
7.0.40.0070.02617.60
7.0.30.0020.02917.54
7.0.20.0230.03217.50
7.0.10.0090.02317.49
7.0.00.0110.04317.47
5.6.400.0060.00915.85
5.6.390.0110.00615.64
5.6.380.0080.01215.59
5.6.370.0100.00615.73
5.6.360.0080.00315.95
5.6.350.0030.01315.73
5.6.340.0080.00415.98
5.6.330.0070.00715.80
5.6.320.0070.00715.92
5.6.310.0000.00915.60
5.6.300.0120.00615.55
5.6.290.0070.01015.81
5.6.280.0070.00715.58
5.6.270.0030.01316.09
5.6.260.0030.01315.76
5.6.250.0070.00715.88
5.6.240.0030.00615.82
5.6.230.0040.00715.71
5.6.220.0030.01415.66
5.6.210.0060.02418.21
5.6.200.0180.03716.91
5.6.190.0020.03718.07
5.6.180.0160.04218.23
5.6.170.0200.04318.07
5.6.160.0030.03618.11
5.6.150.0050.02516.92
5.6.140.0050.05017.06
5.6.130.0070.03016.97
5.6.120.0050.04818.42
5.6.110.0150.04018.33
5.6.100.0080.04518.35
5.6.90.0080.04518.27
5.6.80.0070.02818.05
5.6.70.0070.00315.69
5.6.60.0000.01115.69
5.6.50.0000.01415.57
5.6.40.0100.00715.59
5.6.30.0070.00315.56
5.6.20.0030.00716.05
5.6.10.0060.00615.88
5.6.00.0060.00915.68
5.5.380.0040.00715.53
5.5.370.0060.00915.57
5.5.360.0120.00815.67
5.5.350.0180.03217.96
5.5.340.0100.03716.90
5.5.330.0060.02717.81
5.5.320.0130.04317.89
5.5.310.0200.03217.88
5.5.300.0050.03716.60
5.5.290.0070.03816.88
5.5.280.0050.04818.25
5.5.270.0030.02918.31
5.5.260.0110.03818.36
5.5.250.0050.02818.14
5.5.240.0050.01818.02
5.5.230.0040.00815.65
5.5.220.0060.00915.38
5.5.210.0070.00415.41
5.5.200.0060.00915.63
5.5.190.0080.00415.39
5.5.180.0060.00615.55
5.5.170.0030.00715.69
5.5.160.0040.01515.68
5.5.150.0000.01315.43
5.5.140.0110.00715.40
5.5.130.0070.00715.47
5.5.120.0080.00315.22
5.5.110.0040.01115.54
5.5.100.0090.00615.68
5.5.90.0030.01015.53
5.5.80.0110.00415.41
5.5.70.0030.01215.82
5.5.60.0070.00715.47
5.5.50.0040.00815.69
5.5.40.0120.00315.46
5.5.30.0100.00715.35
5.5.20.0060.00615.51
5.5.10.0100.00315.01
5.5.00.0060.00315.43
5.4.450.0370.03216.08
5.4.440.0400.02516.01
5.4.430.0370.02816.14
5.4.420.0280.03315.89
5.4.410.0370.02716.02
5.4.400.0330.02815.91
5.4.390.0310.03015.85
5.4.380.0350.03515.82
5.4.370.0250.03115.90
5.4.360.0390.02515.74
5.4.350.0340.02715.74
5.4.340.0310.03115.74
5.4.330.0030.00612.70
5.4.320.0300.03215.75
5.4.310.0320.03015.82
5.4.300.0400.02815.97
5.4.290.0340.03015.91
5.4.280.0340.03015.89
5.4.270.0350.02815.83
5.4.260.0420.03615.93
5.4.250.0370.04115.90
5.4.240.0370.04115.95
5.4.230.0420.03715.92
5.4.220.0370.02915.80
5.4.210.0380.03815.97
5.4.200.0380.02315.94
5.4.190.0330.03915.92
5.4.180.0370.02515.80
5.4.170.0290.03415.97
5.4.160.0270.03015.98
5.4.150.0230.03415.95
5.4.140.0300.02714.56
5.4.130.0300.02714.55
5.4.120.0280.02814.52
5.4.110.0300.02714.61
5.4.100.0320.02414.58
5.4.90.0310.02914.57
5.4.80.0300.02714.52
5.4.70.0270.03014.38
5.4.60.0340.02214.48
5.4.50.0370.03314.60
5.4.40.0290.02614.61
5.4.30.0240.02814.52
5.4.20.0270.03014.37
5.4.10.0270.02914.36
5.4.00.0270.02714.23

preferences:
39.21 ms | 401 KiB | 5 Q