3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; 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.00.0070.13915.17
7.3.120.0100.12614.86
7.3.110.0070.13314.58
7.3.100.0030.13714.48
7.3.90.0030.14414.81
7.3.80.0030.12915.03
7.3.70.0030.13114.89
7.3.60.0030.14414.77
7.3.50.0030.13314.91
7.3.40.0000.13314.73
7.3.30.0070.13014.88
7.3.20.0070.13116.74
7.3.10.0100.12516.64
7.3.00.0080.12716.58
7.2.250.0030.14415.15
7.2.240.0070.13715.22
7.2.230.0030.14415.03
7.2.220.0070.14015.03
7.2.210.0030.12814.84
7.2.200.0030.13115.09
7.2.190.0070.13315.16
7.2.180.0000.13715.15
7.2.170.0100.13115.04
7.2.130.0000.13416.93
7.2.120.0030.13416.94
7.2.110.0130.12416.93
7.2.100.0100.12716.80
7.2.90.0000.13516.95
7.2.80.0070.13116.82
7.2.70.0060.13117.09
7.2.60.0080.13316.86
7.2.50.0070.13316.87
7.2.40.0130.12616.73
7.2.30.0070.12916.86
7.2.20.0160.12016.89
7.2.10.0030.13316.83
7.2.00.0030.13418.27
7.1.330.0030.13115.90
7.1.320.0030.12915.70
7.1.310.0030.13715.78
7.1.300.0000.13415.79
7.1.290.0000.13615.85
7.1.280.0000.13415.66
7.1.270.0070.12915.69
7.1.260.0070.13815.91
7.1.250.0000.13815.63
7.1.240.0030.13315.59
7.1.230.0100.12615.83
7.1.220.0070.13815.51
7.1.210.0070.13115.66
7.1.200.0120.12515.71
7.1.190.0070.13115.50
7.1.180.0030.12915.85
7.1.170.0030.14215.42
7.1.160.0070.12915.86
7.1.150.0100.13015.70
7.1.140.0000.13815.46
7.1.130.0000.13815.68
7.1.120.0100.13415.55
7.1.110.0030.13115.28
7.1.100.0060.13515.85
7.1.90.0030.12915.54
7.1.80.0030.13515.91
7.1.70.0030.14216.38
7.1.60.0030.13016.46
7.1.50.0050.16116.21
7.1.40.0100.12815.63
7.1.30.0100.12815.58
7.1.20.0100.12815.58
7.1.10.0100.12715.64
7.1.00.0050.19119.09
7.0.330.0100.12715.30
7.0.320.0000.13515.28
7.0.310.0170.12315.24
7.0.300.0070.12915.27
7.0.290.0030.12615.29
7.0.280.0130.12715.34
7.0.270.0070.13215.40
7.0.260.0000.13415.46
7.0.250.0030.13015.50
7.0.240.0130.13215.32
7.0.230.0070.13715.14
7.0.220.0070.13115.37
7.0.210.0130.12615.47
7.0.200.0070.14116.14
7.0.190.0070.12715.47
7.0.180.0030.13315.31
7.0.170.0130.12515.31
7.0.160.0100.12515.33
7.0.150.0100.12815.29
7.0.140.0030.13115.15
7.0.130.0100.13415.29
7.0.120.0130.12515.17
7.0.110.0070.14515.13
7.0.100.0100.12615.14
7.0.90.0000.13215.09
7.0.80.0070.13215.28
7.0.70.0030.13015.24
7.0.60.0120.15417.75
7.0.50.0130.16616.54
7.0.40.0070.18216.86
7.0.30.0070.17616.86
7.0.20.0200.17116.62
7.0.10.0030.18716.83
7.0.00.0070.14216.80
5.6.380.0130.12314.08
5.6.370.0030.13314.35
5.6.360.0100.12914.40
5.6.350.0070.12314.38
5.6.340.0070.12614.45
5.6.330.0030.12814.66
5.6.320.0070.12514.07
5.6.310.0070.13014.26
5.6.300.0030.13114.54
5.6.290.0030.13114.21
5.6.280.0120.14917.56
5.6.270.0100.13414.38
5.6.260.0030.13314.41
5.6.250.0070.12814.26
5.6.240.0030.13314.23
5.6.230.0230.12614.05
5.6.220.0000.13714.36
5.6.210.0050.17617.29
5.6.200.0120.14216.28
5.6.190.0070.18217.33
5.6.180.0250.16517.58
5.6.170.0150.17317.26
5.6.160.0150.18317.43
5.6.150.0100.17216.21
5.6.140.0030.17216.34
5.6.130.0070.17116.23
5.6.120.0080.17417.69
5.6.110.0150.17417.69
5.6.100.0130.17617.63
5.6.90.0080.16417.57
5.6.80.0100.17017.40
5.6.70.0160.12514.15
5.6.60.0170.13413.99
5.6.50.0100.12914.14
5.6.40.0130.13514.30
5.6.30.0070.14114.23
5.6.20.0100.13214.22
5.6.10.0060.12814.32
5.6.00.0200.12214.25
5.5.380.0100.12811.18
5.5.370.0030.13111.18
5.5.360.0000.13511.18
5.5.350.0220.15915.75
5.5.340.0030.15614.56
5.5.330.0030.18215.82
5.5.320.0200.16515.79
5.5.310.0200.16115.75
5.5.300.0130.16814.58
5.5.290.0100.16314.58
5.5.280.0180.15715.95
5.5.270.0080.15415.97
5.5.260.0070.17415.95
5.5.250.0030.14815.93
5.5.240.0120.14115.76
5.5.230.0070.13211.18
5.5.220.0000.13511.18
5.5.210.0170.12311.18
5.5.200.0200.12911.18
5.5.190.0130.13111.18
5.5.180.0070.12511.18
5.5.170.0100.12911.18
5.5.160.0070.12611.18
5.5.150.0030.13211.18
5.5.140.0130.12611.18
5.5.130.0070.12911.18
5.5.120.0200.12811.18
5.5.110.0030.13211.18
5.5.100.0030.13311.18
5.5.90.0100.12911.18
5.5.80.0100.12711.18
5.5.70.0160.12711.18
5.5.60.0070.13111.18
5.5.50.0170.12911.18
5.5.40.0130.12711.18
5.5.30.0130.12511.18
5.5.20.0100.12511.18
5.5.10.0070.13311.18
5.5.00.0030.13111.18
5.4.450.0350.02815.25
5.4.440.0380.03015.32
5.4.430.0370.02515.29
5.4.420.0300.03215.40
5.4.410.0320.03015.25
5.4.400.0290.03315.15
5.4.390.0290.03115.13
5.4.380.0360.02815.18
5.4.370.0380.02815.20
5.4.360.0470.02214.99
5.4.350.0400.02715.16
5.4.340.0410.03115.06
5.4.330.0200.00011.18
5.4.320.0320.03015.24
5.4.310.0330.02715.22
5.4.300.0390.02715.24
5.4.290.0380.03115.15
5.4.280.0320.02815.24
5.4.270.0370.02515.24
5.4.260.0350.03115.18
5.4.250.0330.03315.08
5.4.240.0350.02515.19
5.4.230.0330.02815.19
5.4.220.0330.03415.08
5.4.210.0330.03315.24
5.4.200.0470.02815.24
5.4.190.0350.03015.08
5.4.180.0370.03315.18
5.4.170.0330.03115.23
5.4.160.0480.03515.20
5.4.150.0390.02315.12
5.4.140.0280.02813.77
5.4.130.0410.02713.83
5.4.120.0280.02813.73
5.4.110.0370.02313.68
5.4.100.0360.02513.81
5.4.90.0360.02313.87
5.4.80.0290.03113.61
5.4.70.0270.03513.81
5.4.60.0250.03113.61
5.4.50.0340.03613.82
5.4.40.0390.02313.75
5.4.30.0380.02313.80
5.4.20.0310.02913.71
5.4.10.0390.02513.88
5.4.00.0320.02813.53

preferences:
37.93 ms | 401 KiB | 5 Q