3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $hashToStoreInDb); echo "$isPasswordCorrect \n"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \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.0100.20214.70
7.3.120.0100.20414.81
7.3.110.0100.19114.74
7.3.100.0070.19614.61
7.3.90.0070.18914.71
7.3.80.0030.18614.89
7.3.70.0100.18714.73
7.3.60.0100.18314.59
7.3.50.0030.19714.77
7.3.40.0030.18214.66
7.3.30.0100.18614.55
7.3.20.0030.19116.71
7.3.10.0100.18916.46
7.3.00.0130.18716.56
7.2.250.0100.20315.02
7.2.240.0070.19414.80
7.2.230.0030.19814.81
7.2.220.0030.19815.10
7.2.210.0030.18914.63
7.2.200.0100.18014.74
7.2.190.0030.18415.03
7.2.180.0100.18714.76
7.2.170.0030.19214.69
7.2.130.0330.18716.71
7.2.120.0100.18716.79
7.2.110.0070.19116.86
7.2.100.0070.18916.89
7.2.90.0070.18516.58
7.2.80.0070.19316.28
7.2.70.0100.18416.55
7.2.60.0080.18916.75
7.2.50.0070.19216.86
7.2.40.0100.19916.91
7.2.30.0100.18616.49
7.2.20.0030.20216.62
7.2.10.0130.18616.88
7.2.00.0050.20017.98
7.1.330.0030.19715.57
7.1.320.0130.18515.72
7.1.310.0000.19615.54
7.1.300.0070.18715.73
7.1.290.0070.19015.64
7.1.280.0030.19215.59
7.1.270.0000.19115.73
7.1.260.0070.18915.42
7.1.250.0500.19315.57
7.1.240.0070.19415.72
7.1.230.0100.18515.93
7.1.220.0070.18415.73
7.1.210.0170.17915.53
7.1.200.0090.18815.73
7.1.190.0070.19215.76
7.1.180.0130.19815.52
7.1.170.0030.19115.64
7.1.160.0030.20115.75
7.1.150.0130.17615.67
7.1.140.0130.18115.78
7.1.130.0070.18815.42
7.1.120.0100.18515.79
7.1.110.0100.18015.92
7.1.100.0030.19716.87
7.1.90.0130.18615.78
7.1.80.0030.18815.77
7.1.70.0080.19116.33
7.1.60.0100.22917.62
7.1.50.0150.21416.23
7.1.40.0070.19215.34
7.1.30.0130.18915.33
7.1.20.0100.18715.61
7.1.10.0100.18815.41
7.1.00.0050.24319.02
7.0.330.0030.18615.15
7.0.320.0070.19515.27
7.0.310.0070.19115.27
7.0.300.0030.18315.15
7.0.290.0070.18715.11
7.0.280.0030.19515.13
7.0.270.0030.19315.05
7.0.260.0070.18915.14
7.0.250.0000.19515.15
7.0.240.0160.18715.09
7.0.230.0070.19114.76
7.0.220.0100.19415.31
7.0.210.0130.19515.20
7.0.200.0030.19115.79
7.0.190.0070.19215.49
7.0.180.0070.19315.18
7.0.170.0070.19115.08
7.0.160.0100.19015.10
7.0.150.0070.19715.18
7.0.140.0120.22818.67
7.0.130.0100.18915.16
7.0.120.0070.19014.97
7.0.110.0130.18315.00
7.0.100.0100.19115.04
7.0.90.0070.19515.02
7.0.80.0070.20814.97
7.0.70.0070.19014.88
7.0.60.0050.24317.44
7.0.50.0100.21616.14
7.0.40.0080.23016.61
7.0.30.0170.23416.66
7.0.20.0150.21916.69
7.0.10.0030.22016.58
7.0.00.0050.23316.61
5.6.380.0070.18814.33
5.6.370.0100.19114.34
5.6.360.0030.19114.24
5.6.350.0030.19114.23
5.6.340.0030.19114.25
5.6.330.0070.18914.30
5.6.320.0070.19414.09
5.6.310.0000.19714.25
5.6.300.0030.18914.06
5.6.290.0100.18713.93
5.6.280.0050.24117.66
5.6.270.0100.18213.96
5.6.260.0030.18814.09
5.6.250.0100.18914.27
5.6.240.0030.19014.29
5.6.230.0030.19013.89
5.6.220.0100.18114.36
5.6.210.0050.23617.32
5.6.200.0080.22616.15
5.6.190.0050.21217.35
5.6.180.0220.21217.25
5.6.170.0220.22417.31
5.6.160.0080.23717.15
5.6.150.0070.23916.01
5.6.140.0050.22216.12
5.6.130.0050.22116.03
5.6.120.0050.22117.70
5.6.110.0050.22417.50
5.6.100.0080.22817.67
5.6.90.0070.25117.47
5.6.80.0030.23317.30
5.6.70.0130.18413.85
5.6.60.0000.19713.76
5.6.50.0070.19613.84
5.6.40.0070.19513.58
5.6.30.0030.19213.79
5.6.20.0130.18414.27
5.6.10.0100.18814.00
5.6.00.0100.19513.89
5.5.380.0070.18710.90
5.5.370.0030.19110.79
5.5.360.0030.18611.05
5.5.350.2030.23715.75
5.5.340.0070.19714.42
5.5.330.0020.22915.70
5.5.320.0220.23015.64
5.5.310.0120.23315.62
5.5.300.0070.22014.49
5.5.290.0080.23314.51
5.5.280.0070.20115.86
5.5.270.0070.20915.86
5.5.260.0030.21115.80
5.5.250.0080.23315.87
5.5.240.0100.20815.39
5.5.230.0100.18711.02
5.5.220.0030.19310.47
5.5.210.0030.19411.03
5.5.200.0160.18310.85
5.5.190.0130.18610.85
5.5.180.0100.19210.71
5.5.170.0100.20411.02
5.5.160.0070.19310.75
5.5.150.0130.18210.59
5.5.140.0100.19310.64
5.5.130.0160.18210.73
5.5.120.0160.18410.79
5.5.110.0170.18510.63
5.5.100.0170.19110.91
5.5.90.0100.20010.43
5.5.80.0270.19410.84
5.5.70.0100.19210.63
5.5.60.0130.18410.92
5.5.50.0130.18711.00
5.5.40.0070.18710.51
5.5.30.0070.18910.51
5.5.20.0070.19110.56
5.5.10.0070.19010.70
5.5.00.0030.19110.67
5.4.450.0070.03214.86
5.4.440.0120.02515.21
5.4.430.0050.03315.12
5.4.420.0100.03115.19
5.4.410.0140.03715.18
5.4.400.0100.03514.93
5.4.390.0080.03314.87
5.4.380.0050.03114.70
5.4.370.0100.03014.44
5.4.360.0090.03214.63
5.4.350.0080.02814.72
5.4.340.0070.03014.52
5.4.330.0080.00310.60
5.4.320.0070.03711.50
5.4.310.0100.02411.60
5.4.300.0090.02211.44
5.4.290.0100.03811.53
5.4.280.0120.02811.45
5.4.270.0080.02611.55
5.4.260.0110.02611.46
5.4.250.0120.02411.51
5.4.240.0100.03011.59
5.4.230.0130.03411.48
5.4.220.0090.02811.36
5.4.210.0080.03011.47
5.4.200.0060.02811.58
5.4.190.0110.02111.57
5.4.180.0080.02011.43
5.4.170.0040.01911.61
5.4.160.0060.01811.60
5.4.150.0100.02011.59
5.4.140.0100.02311.41
5.4.130.0050.02111.48
5.4.120.0020.02411.48
5.4.110.0040.02611.41
5.4.100.0080.02611.32
5.4.90.0090.02711.42
5.4.80.0080.02711.45
5.4.70.0060.02511.43
5.4.60.0060.02611.29
5.4.50.0070.02111.41
5.4.40.0070.02811.40
5.4.30.0140.02711.41
5.4.20.0100.02111.32
5.4.10.0100.01811.38
5.4.00.0060.02811.13
5.3.290.0070.03111.61
5.3.280.0050.02111.54
5.3.270.0070.02211.54
5.3.260.0100.02211.52
5.3.250.0060.04011.56
5.3.240.0040.03411.54
5.3.230.0060.02911.47
5.3.220.0090.03411.40
5.3.210.0060.02811.47
5.3.200.0050.02511.55
5.3.190.0060.02511.54
5.3.180.0090.03011.46
5.3.170.0120.02511.60
5.3.160.0050.03011.56
5.3.150.0070.03011.60
5.3.140.0070.02811.45
5.3.130.0060.02711.54
5.3.120.0070.01911.55
5.3.110.0080.01911.50
5.3.100.0050.02311.27
5.3.90.0100.01911.30
5.3.80.0060.01911.26
5.3.70.0070.01911.19
5.3.60.0080.02011.15
5.3.50.0040.02711.15
5.3.40.0100.02011.09
5.3.30.0070.02011.14
5.3.20.0050.02011.02
5.3.10.0070.01910.91
5.3.00.0070.02210.93
5.2.170.0060.0169.28
5.2.160.0050.0179.34
5.2.150.0050.0179.31
5.2.140.0030.0189.33
5.2.130.0080.0169.21
5.2.120.0040.0169.29
5.2.110.0070.0179.21
5.2.100.0020.0189.29
5.2.90.0020.0199.27
5.2.80.0050.0199.14
5.2.70.0050.0179.26
5.2.60.0080.0159.19
5.2.50.0060.0209.07
5.2.40.0090.0189.19
5.2.30.0070.0219.09
5.2.20.0030.0209.09
5.2.10.0030.0179.04
5.2.00.0020.0198.97
5.1.60.0040.0178.29
5.1.50.0070.0128.30
5.1.40.0070.0128.32
5.1.30.0040.0158.53
5.1.20.0050.0168.47
5.1.10.0050.0168.33
5.1.00.0080.0128.33
5.0.50.0020.0137.57
5.0.40.0010.0137.50
5.0.30.0030.0197.41
5.0.20.0050.0097.39
5.0.10.0070.0107.38
5.0.00.0060.0187.38
4.4.90.0030.0106.65
4.4.80.0030.0106.64
4.4.70.0010.0116.64
4.4.60.0020.0106.64
4.4.50.0020.0106.64
4.4.40.0030.0156.62
4.4.30.0030.0106.64
4.4.20.0040.0096.69
4.4.10.0050.0106.69
4.4.00.0030.0136.64
4.3.110.0010.0106.60
4.3.100.0030.0096.59
4.3.90.0040.0096.58
4.3.80.0070.0156.55
4.3.70.0050.0126.58
4.3.60.0040.0106.57
4.3.50.0060.0106.58
4.3.40.0050.0146.53
4.3.30.0060.0095.90
4.3.20.0020.0115.89
4.3.10.0040.0095.87
4.3.00.0020.0147.78

preferences:
37.71 ms | 400 KiB | 5 Q