3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; if (password_verify($pass, $hash)){ if (password_needs_rehash($hash, PASSWORD_DEFAULT)){ $hash = password_hash($pass, PASSWORD_DEFAULT); } echo "good \n"; } //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.0150.08015.79
7.4.00.0080.07515.73
7.3.130.0150.07515.67
7.3.120.0100.07615.56
7.3.110.0100.07815.46
7.3.100.0100.07415.44
7.3.90.0170.07015.63
7.3.80.0090.07415.40
7.3.70.0130.07415.37
7.3.60.0140.03914.09
7.3.50.0090.07415.37
7.3.40.0120.07515.44
7.3.30.0150.07115.46
7.3.20.0190.06916.49
7.3.10.0280.06516.34
7.3.00.0110.07216.41
7.2.260.0180.07115.66
7.2.250.0120.07715.89
7.2.240.0120.07215.88
7.2.230.0100.07915.82
7.2.220.0180.07415.66
7.2.210.0080.07515.89
7.2.200.0150.07615.80
7.2.190.0130.06915.76
7.2.180.0200.07415.65
7.2.170.0150.07215.81
7.2.160.0150.06915.66
7.2.150.0140.07116.67
7.2.140.0310.07116.76
7.2.130.0360.07716.63
7.2.120.0170.07216.72
7.2.110.0140.07016.80
7.2.100.0130.07616.71
7.2.90.0280.07516.80
7.2.80.0210.03914.34
7.2.70.0080.04014.28
7.2.60.0330.04615.14
7.2.50.0320.03914.39
7.2.40.0120.03314.34
7.2.30.0370.04014.26
7.2.20.0520.03314.27
7.2.10.0290.03714.35
7.2.00.0130.05016.54
7.1.330.0620.07815.55
7.1.320.0490.07315.74
7.1.310.0580.07115.72
7.1.300.0460.03713.70
7.1.290.0440.07315.51
7.1.280.0220.07815.55
7.1.270.0340.06715.64
7.1.260.0200.07215.55
7.1.250.0120.07215.69
7.1.240.0380.07015.56
7.1.230.0200.07615.70
7.1.220.0090.07515.62
7.1.210.0120.07115.63
7.1.200.0140.07015.53
7.1.190.0190.07315.59
7.1.180.0370.07115.50
7.1.170.0170.07015.30
7.1.160.0320.07415.58
7.1.150.0400.07115.54
7.1.140.0210.06715.45
7.1.130.0480.08215.60
7.1.120.0340.07415.50
7.1.110.0260.07615.68
7.1.100.0410.07016.36
7.1.90.0290.08115.68
7.1.80.0330.07415.57
7.1.70.0300.04915.04
7.1.60.0270.08416.92
7.1.50.0220.05015.87
7.1.40.0420.07515.41
7.1.30.0340.04013.56
7.1.20.0840.04215.20
7.1.10.0480.03813.71
7.1.00.0290.08016.57
7.0.330.0350.07015.27
7.0.320.0260.07315.21
7.0.310.0300.03613.82
7.0.300.0130.07315.23
7.0.290.0340.03713.54
7.0.280.0250.07315.15
7.0.270.0140.04014.92
7.0.260.0330.07015.38
7.0.250.0190.07115.17
7.0.240.0550.06515.42
7.0.230.0410.07315.31
7.0.220.0180.07315.10
7.0.210.0210.07015.41
7.0.200.0360.05114.80
7.0.190.0270.04113.38
7.0.180.0280.03913.62
7.0.170.0250.07315.37
7.0.160.0470.03813.96
7.0.150.0110.07815.21
7.0.140.0360.03413.62
7.0.130.0430.04013.87
7.0.120.0340.04213.59
7.0.110.0430.03713.63
7.0.100.0410.04413.48
7.0.90.0520.06515.38
7.0.80.0480.03914.67
7.0.70.0430.03813.64
7.0.60.0400.09816.88
7.0.50.0260.08115.04
7.0.40.0070.06015.09
7.0.30.0100.08216.19
7.0.20.0220.09616.14
7.0.10.0130.09916.29
7.0.00.0130.09916.28
5.6.400.0110.07115.19
5.6.390.0150.07015.01
5.6.380.0110.07315.17
5.6.370.0140.06715.23
5.6.360.0050.07615.32
5.6.350.0100.07515.14
5.6.340.0230.06815.17
5.6.330.0120.04112.95
5.6.320.0150.04013.11
5.6.310.0110.03413.13
5.6.300.0130.03612.84
5.6.290.0170.03614.27
5.6.280.0150.10217.13
5.6.270.0170.03613.08
5.6.260.0140.03712.96
5.6.250.0080.04113.02
5.6.240.0070.08015.14
5.6.230.0150.07015.04
5.6.220.0120.07215.02
5.6.210.0070.08816.97
5.6.200.0090.09916.09
5.6.190.0070.08516.89
5.6.180.0120.09217.01
5.6.170.0180.09916.94
5.6.160.0110.09616.90
5.6.150.0050.08116.04
5.6.140.0080.10416.11
5.6.130.0060.10616.14
5.6.120.0100.08017.09
5.6.110.0100.10117.12
5.6.100.0090.10217.15
5.6.90.0140.10017.03
5.6.80.0080.10516.88
5.6.70.0120.06814.94
5.6.60.0080.07615.02
5.6.50.0080.07315.11
5.6.40.0140.06614.88
5.6.30.0080.07315.24
5.6.20.0090.07214.87
5.6.10.0070.07615.03
5.6.00.0150.07215.13
5.5.380.0090.07515.10
5.5.370.0120.07515.00
5.5.360.0100.03913.09
5.5.350.0200.10116.59
5.5.340.0100.08515.94
5.5.330.0120.08316.75
5.5.320.0140.08016.91
5.5.310.0170.10016.83
5.5.300.0070.09715.95
5.5.290.0100.09215.99
5.5.280.0070.10017.02
5.5.270.0070.09416.77
5.5.260.0080.09916.90
5.5.250.0090.08016.76
5.5.240.0060.08516.65
5.5.230.0050.07514.98
5.5.220.0100.07014.88
5.5.210.0120.07014.87
5.5.200.0100.07314.81
5.5.190.0080.07115.13
5.5.180.0110.07014.89
5.5.170.0070.07514.96
5.5.160.0050.07415.05
5.5.150.0020.07914.91
5.5.140.0120.07215.07
5.5.130.0050.08115.11
5.5.120.0100.07314.94
5.5.110.0130.06915.05
5.5.100.0050.07515.08
5.5.90.0110.06914.88
5.5.80.0050.07714.91
5.5.70.0100.06814.63
5.5.60.0070.07614.91
5.5.50.0100.07214.73
5.5.40.0120.07014.65
5.5.30.0090.07314.79
5.5.20.0090.07314.79
5.5.10.0090.07215.00
5.5.00.0140.06714.74
5.4.450.0220.02114.61
5.4.440.0190.02514.64
5.4.430.0250.02614.63
5.4.420.0240.02514.58
5.4.410.0190.02714.43
5.4.400.0250.01814.36
5.4.390.0230.02414.46
5.4.380.0230.02214.40
5.4.370.0220.02314.37
5.4.360.0260.01814.48
5.4.350.0270.02014.39
5.4.340.0210.02714.42
5.4.330.0050.00812.20
5.4.320.0330.02414.45
5.4.310.0210.01814.39
5.4.300.0260.01814.38
5.4.290.0280.02014.49
5.4.280.0250.02314.44
5.4.270.0250.01914.47
5.4.260.0240.02414.38
5.4.250.0200.02214.46
5.4.240.0250.01614.58
5.4.230.0240.01914.46
5.4.220.0200.02314.33
5.4.210.0280.01814.44
5.4.200.0300.02214.46
5.4.190.0220.02214.39
5.4.180.0280.02014.44
5.4.170.0210.02414.50
5.4.160.0280.02114.46
5.4.150.0260.02114.42
5.4.140.0220.02913.61
5.4.130.0260.02013.54
5.4.120.0240.02413.46
5.4.110.0230.02213.42
5.4.100.0230.02313.47
5.4.90.0230.02413.58
5.4.80.0270.01913.44
5.4.70.0230.02013.45
5.4.60.0230.01813.61
5.4.50.0190.02313.52
5.4.40.0240.02613.59
5.4.30.0240.02113.59
5.4.20.0300.02513.56
5.4.10.0250.02213.56
5.4.00.0230.02013.34

preferences:
29.78 ms | 401 KiB | 5 Q