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"; $password = "test33"; $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.10.0100.20115.04
7.4.00.0100.19314.94
7.3.130.0100.18915.07
7.3.120.0070.19514.88
7.3.110.0080.19114.79
7.3.100.0020.20014.89
7.3.90.0080.19014.75
7.3.80.0020.19515.02
7.3.70.0050.19014.55
7.3.60.0050.19314.77
7.3.50.0050.19014.65
7.3.40.0030.18814.74
7.3.30.0030.18714.69
7.3.20.0100.18716.47
7.3.10.0020.19016.49
7.3.00.0070.19016.62
7.2.260.0060.20114.59
7.2.250.0030.20715.12
7.2.240.0020.19214.92
7.2.230.0080.18915.01
7.2.220.0070.18814.81
7.2.210.0080.18615.03
7.2.200.0050.19514.70
7.2.190.0070.18714.64
7.2.180.0030.18414.75
7.2.170.0030.19114.98
7.2.160.0100.18114.92
7.2.150.0050.18616.89
7.2.140.0030.19916.95
7.2.130.0080.18516.72
7.2.120.0080.18216.84
7.2.110.0080.18716.75
7.2.100.0080.18216.70
7.2.90.0020.18916.80
7.2.80.0030.19216.91
7.2.70.0030.18516.96
7.2.60.0100.19016.82
7.2.50.0050.18416.76
7.2.40.0030.18916.82
7.2.30.0070.18816.85
7.2.20.0070.18816.84
7.2.10.0050.19117.00
7.2.00.0070.18616.76
7.1.330.0070.19215.62
7.1.320.0050.19415.67
7.1.310.0050.19115.65
7.1.300.0000.19215.71
7.1.290.0070.18515.77
7.1.280.0050.18815.64
7.1.270.0070.18815.80
7.1.260.0050.18915.58
7.1.250.0020.19615.95
7.1.240.0070.19115.73
7.1.230.0000.19315.74
7.1.220.0030.19115.79
7.1.210.0000.18915.84
7.1.200.0050.18715.85
7.1.190.0030.19515.73
7.1.180.0030.19715.57
7.1.170.0000.18815.48
7.1.160.0030.19915.61
7.1.150.0100.18615.66
7.1.140.0100.18715.86
7.1.130.0100.18315.84
7.1.120.0070.18815.85
7.1.110.0000.20015.64
7.1.100.0050.19017.03
7.1.90.0030.18815.86
7.1.80.0030.18915.62
7.1.70.0030.18816.35
7.1.60.0020.20117.62
7.1.50.0080.19716.41
7.1.40.0100.17815.87
7.1.30.0000.19415.77
7.1.20.0070.19115.96
7.1.10.0100.18015.64
7.1.00.0070.23919.13
7.0.330.0030.19615.11
7.0.320.0070.19415.52
7.0.310.0100.18115.50
7.0.300.0030.19715.44
7.0.290.0030.20215.27
7.0.280.0070.19415.19
7.0.270.0030.19015.34
7.0.260.0030.19515.41
7.0.250.0030.19315.57
7.0.240.0100.19815.52
7.0.230.0070.17915.67
7.0.220.0030.18515.61
7.0.210.0070.18815.63
7.0.200.0030.19115.97
7.0.190.0070.18615.51
7.0.180.0070.19415.35
7.0.170.0070.18215.51
7.0.160.0030.18815.37
7.0.150.0000.20015.47
7.0.140.0050.23218.65
7.0.130.0030.18515.54
7.0.120.0100.18415.20
7.0.110.0030.18115.55
7.0.100.0000.18715.25
7.0.90.0030.18715.24
7.0.80.0030.18515.42
7.0.70.0070.18615.52
7.0.60.0030.24117.67
7.0.50.0030.20516.53
7.0.40.0030.21416.79
7.0.30.0150.20816.80
7.0.20.0170.22316.83
7.0.10.0080.21016.77
7.0.00.0070.23016.78
5.6.400.0070.19114.18
5.6.390.0030.19213.98
5.6.380.0030.20514.30
5.6.370.0030.19214.59
5.6.360.0030.18814.48
5.6.350.0000.19014.41
5.6.340.0070.17914.27
5.6.330.0100.17614.49
5.6.320.0030.20514.25
5.6.310.0070.19114.39
5.6.300.0070.18614.43
5.6.290.0030.18714.32
5.6.280.0030.24217.74
5.6.270.0030.18714.10
5.6.260.0000.19114.37
5.6.250.0030.18614.56
5.6.240.0100.18014.17
5.6.230.0030.18714.18
5.6.220.0070.18514.21
5.6.210.0030.23017.39
5.6.200.0050.20616.02
5.6.190.0100.19917.52
5.6.180.0170.23317.35
5.6.170.0120.21417.46
5.6.160.0050.23717.51
5.6.150.0070.20516.24
5.6.140.0070.22016.13
5.6.130.0050.20916.36
5.6.120.0070.23317.50
5.6.110.0120.22817.69
5.6.100.0050.24117.65
5.6.90.0070.23017.57
5.6.80.0050.23217.30
5.6.70.0000.19314.20
5.6.60.0000.20214.21
5.6.50.0000.18714.44
5.6.40.0070.18914.32
5.6.30.0070.18214.27
5.6.20.0030.18713.98
5.6.10.0030.18414.24
5.6.00.0070.18014.20
5.5.380.0030.19214.44
5.5.370.0100.18314.32
5.5.360.0030.19013.97
5.5.350.1730.17717.39
5.5.340.0050.23516.20
5.5.330.0070.21117.23
5.5.320.0180.22917.25
5.5.310.0150.23617.13
5.5.300.0050.21016.16
5.5.290.0030.20116.06
5.5.280.0030.23117.57
5.5.270.0030.20717.58
5.5.260.0070.21617.39
5.5.250.0050.21617.45
5.5.240.0020.23717.20
5.5.230.0070.18314.27
5.5.220.0000.19613.78
5.5.210.0000.19614.32
5.5.200.0030.18814.02
5.5.190.0100.18114.25
5.5.180.0070.18813.76
5.5.170.0130.18314.08
5.5.160.0130.17814.12
5.5.150.0070.18113.93
5.5.140.0100.18614.20
5.5.130.0130.18514.29
5.5.120.0000.18814.19
5.5.110.0070.18514.07
5.5.100.0070.18914.26
5.5.90.0030.18514.34
5.5.80.0030.20214.05
5.5.70.0070.19514.24
5.5.60.0030.18714.28
5.5.50.0030.18714.12
5.5.40.0030.18214.27
5.5.30.0030.19814.13
5.5.20.0130.18514.11
5.5.10.0030.19714.36
5.5.00.0070.18513.91
5.4.450.0450.02515.04
5.4.440.0180.03214.99
5.4.430.0230.02815.29
5.4.420.0300.02315.15
5.4.410.0250.01914.88
5.4.400.0570.02214.94
5.4.390.0570.01815.07
5.4.380.0200.02714.88
5.4.370.0280.03914.69
5.4.360.0120.03214.81
5.4.350.0310.02814.74
5.4.340.0300.03314.71
5.4.330.0070.00010.74
5.4.320.0060.02411.71
5.4.310.0050.02311.71
5.4.300.0020.02311.68
5.4.290.0170.03711.72
5.4.280.0040.02911.48
5.4.270.0080.01911.67
5.4.260.0030.02311.48
5.4.250.0040.02311.64
5.4.240.0040.02111.52
5.4.230.0090.02311.48
5.4.220.0040.02911.61
5.4.210.0060.03011.70
5.4.200.0040.03411.53
5.4.190.0040.02411.55
5.4.180.0050.02011.53
5.4.170.0050.02311.56
5.4.160.0090.02311.60
5.4.150.0070.02411.57
5.4.140.0080.02811.45
5.4.130.0060.02011.43
5.4.120.0040.02211.48
5.4.110.0040.02911.34
5.4.100.0070.02711.40
5.4.90.0070.02311.36
5.4.80.0040.03111.42
5.4.70.0070.02511.44
5.4.60.0060.02611.44
5.4.50.0060.02711.45
5.4.40.0040.02911.38
5.4.30.0040.02911.38
5.4.20.0090.02611.34
5.4.10.0060.02011.40
5.4.00.0070.02311.15
5.3.290.0050.02711.72
5.3.280.0040.02811.67
5.3.270.0040.02311.68
5.3.260.0040.02411.68
5.3.250.0040.02711.68
5.3.240.0060.02611.67
5.3.230.0050.02611.67
5.3.220.0090.02511.66
5.3.210.0040.02911.66
5.3.200.0020.02511.66
5.3.190.0040.02211.65
5.3.180.0020.02411.65
5.3.170.0060.02111.65
5.3.160.0060.02011.65
5.3.150.0020.02311.65
5.3.140.0070.02211.65
5.3.130.0070.02411.64
5.3.120.0020.02511.65
5.3.110.0050.02311.65
5.3.100.0040.02311.38
5.3.90.0070.02611.36
5.3.80.0080.02711.35
5.3.70.0030.02911.35
5.3.60.0040.03011.35
5.3.50.0080.03411.32
5.3.40.0050.02911.32
5.3.30.0100.02611.29
5.3.20.0030.02711.18
5.3.10.0050.02911.17
5.3.00.0110.02411.16
5.2.170.0070.0459.18
5.2.160.0050.0469.18
5.2.150.0070.0539.18
5.2.140.0070.0489.18
5.2.130.0090.0389.14
5.2.120.0070.0449.14
5.2.110.0070.0439.14
5.2.100.0070.0439.14
5.2.90.0100.0399.14
5.2.80.0100.0499.14
5.2.70.0070.0529.14
5.2.60.0120.0619.09
5.2.50.0060.0499.06
5.2.40.0120.0379.04
5.2.30.0210.0509.01
5.2.20.0060.0379.00
5.2.10.0050.0458.92
5.2.00.0100.0408.78
5.1.60.0060.0268.07
5.1.50.0070.0308.06
5.1.40.0070.0298.05
5.1.30.0050.0388.40
5.1.20.0080.0418.41
5.1.10.0030.0378.14
5.1.00.0040.0388.14
5.0.50.0060.0296.62
5.0.40.0040.0346.48
5.0.30.0090.0436.29
5.0.20.0050.0346.26
5.0.10.0100.0266.24
5.0.00.0030.0496.23
4.4.90.0060.0274.78
4.4.80.0100.0364.75
4.4.70.0030.0214.75
4.4.60.0040.0324.75
4.4.50.0060.0204.77
4.4.40.0080.0304.71
4.4.30.0070.0374.76
4.4.20.0040.0184.85
4.4.10.0010.0224.85
4.4.00.0060.0444.76
4.3.110.0070.0524.67
4.3.100.0060.0204.66
4.3.90.0060.0194.63
4.3.80.0050.0494.59
4.3.70.0040.0244.63
4.3.60.0020.0194.63
4.3.50.0070.0164.63
4.3.40.0020.0294.54
4.3.30.0020.0183.29
4.3.20.0040.0173.26
4.3.10.0050.0183.22
4.3.00.0000.01316.04

preferences:
56.57 ms | 401 KiB | 5 Q