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"; $hashToStoreInDb = "\$2y\$10\$JCqObDKNF9A21jyhI9.fIObxjiGUMPper3criJstIRZ8oZ2u0si25"; $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.0030.20115.02
7.3.120.0130.19614.70
7.3.110.0070.19314.77
7.3.100.0030.19514.65
7.3.90.0070.18614.69
7.3.80.0070.18614.89
7.3.70.0000.18714.90
7.3.60.0070.20214.75
7.3.50.0070.18514.55
7.3.40.0000.18314.42
7.3.30.0070.18214.79
7.3.20.0070.19416.65
7.3.10.0100.19516.63
7.3.00.0030.18516.63
7.2.250.0070.19114.80
7.2.240.0100.20315.10
7.2.230.0100.19814.99
7.2.220.0030.19715.18
7.2.210.0000.19314.83
7.2.200.0030.19215.18
7.2.190.0100.19214.72
7.2.180.0030.18514.83
7.2.170.0070.18715.05
7.2.60.0070.18916.82
7.2.00.0000.20019.03
7.1.330.0070.18815.92
7.1.320.0030.19415.62
7.1.310.0030.19815.80
7.1.300.0030.19215.79
7.1.290.0030.18415.80
7.1.280.0100.18915.75
7.1.270.0100.18615.67
7.1.260.0100.18515.84
7.1.200.0100.19815.20
7.1.100.0030.20018.32
7.1.70.0070.18917.04
7.1.60.0100.21619.46
7.1.50.0100.23316.90
7.1.00.0030.30322.54
7.0.200.0030.18416.77
7.0.140.0070.28022.18
7.0.100.0470.26320.17
7.0.90.0270.26319.89
7.0.80.0430.28319.91
7.0.70.0470.27019.90
7.0.60.0330.23320.06
7.0.50.0400.29020.34
7.0.40.0130.26320.10
7.0.30.0070.21320.15
7.0.20.0070.30720.13
7.0.10.0130.28320.09
7.0.00.0130.28020.08
5.6.280.0030.29721.06
5.6.250.0100.27020.71
5.6.240.0030.27720.63
5.6.230.0100.26720.67
5.6.220.0030.30720.59
5.6.210.0030.27720.57
5.6.200.0100.22720.94
5.6.190.0100.27321.17
5.6.180.0170.28320.90
5.6.170.0030.28321.02
5.6.160.0070.29321.07
5.6.150.0200.28021.06
5.6.140.0130.27721.00
5.6.130.0200.23721.08
5.6.120.0100.29021.07
5.6.110.0030.30021.01
5.6.100.0130.28021.06
5.6.90.0100.28020.99
5.6.80.0170.25720.42
5.6.70.0030.28320.41
5.6.60.0030.28720.25
5.6.50.0100.24320.42
5.6.40.0030.25720.37
5.6.30.0130.25720.32
5.6.20.0100.30020.45
5.6.10.0070.28720.43
5.6.00.0070.27720.38
5.5.380.0100.27720.32
5.5.370.0130.24020.42
5.5.360.0070.27320.33
5.5.350.0270.26020.45
5.5.340.0130.27020.93
5.5.330.0070.24720.82
5.5.320.0100.25020.80
5.5.310.0100.27020.88
5.5.300.0200.25720.63
5.5.290.0030.28020.91
5.5.280.0100.27020.80
5.5.270.0130.26720.91
5.5.260.0100.27320.90
5.5.250.0100.27720.69
5.5.240.0100.24320.29
5.5.230.0030.27020.21
5.5.220.0030.27320.10
5.5.210.0130.27320.29
5.5.200.0100.29320.26
5.5.190.0070.24720.27
5.5.180.0070.27720.15
5.5.160.0100.26020.27
5.5.150.0030.26020.23
5.5.140.0070.28720.23
5.5.130.0070.26720.16
5.5.120.0100.29720.10
5.5.110.0130.25720.14
5.5.100.0100.26720.15
5.5.90.0030.28020.03
5.5.80.0100.25020.07
5.5.70.0030.27320.05
5.5.60.0030.29020.08
5.5.50.0070.28720.05
5.5.40.0130.29019.90
5.5.30.0170.28020.04
5.5.20.0200.26020.04
5.5.10.0100.23720.07
5.5.00.0100.27720.10
5.4.450.0070.07719.48
5.4.440.0000.09019.36
5.4.430.0130.07019.54
5.4.420.0100.07719.14
5.4.410.0130.03719.22
5.4.400.0100.07718.95
5.4.390.0030.05019.14
5.4.380.0000.07718.97
5.4.370.0070.07018.97
5.4.360.0130.07319.06
5.4.350.0070.07719.10
5.4.340.0070.07319.15
5.4.320.0070.07718.98
5.4.310.0100.07019.07
5.4.300.0070.07318.93
5.4.290.0230.06019.02
5.4.280.0000.08319.03
5.4.270.0100.07019.21
5.4.260.0100.07018.89
5.4.250.0030.08319.11
5.4.240.0070.05719.11
5.4.230.0030.07319.06
5.4.220.0070.07718.80
5.4.210.0100.04318.96
5.4.200.0030.07319.20
5.4.190.0070.07319.11
5.4.180.0100.07318.99
5.4.170.0030.08719.14
5.4.160.0130.02719.02
5.4.150.0070.07718.95
5.4.140.0130.06716.34
5.4.130.0000.06716.28
5.4.120.0070.06716.25
5.4.110.0000.07716.33
5.4.100.0070.06316.23
5.4.90.0030.06716.26
5.4.80.0000.07316.40
5.4.70.0000.08316.29
5.4.60.0030.07316.41
5.4.50.0230.06016.18
5.4.40.0130.07016.24
5.4.30.0070.07316.40
5.4.20.0200.05716.30
5.4.10.0100.06716.40
5.4.00.0030.07715.69
5.3.290.0030.08314.60
5.3.280.0030.08014.50
5.3.270.0100.07314.57
5.3.260.0070.07714.57
5.3.250.0100.07314.56
5.3.240.0030.07014.57
5.3.230.0070.07014.59
5.3.220.0030.05714.57
5.3.210.0030.08014.42
5.3.200.0130.06314.55
5.3.190.0000.08314.55
5.3.180.0070.07714.55
5.3.170.0030.04714.55
5.3.160.0100.06714.52
5.3.150.0030.05014.42
5.3.140.0030.07714.47
5.3.130.0070.07314.41
5.3.120.0130.06714.54
5.3.110.0070.07014.41
5.3.100.0070.07014.03
5.3.90.0030.05313.98
5.3.80.0030.07313.96
5.3.70.0100.07013.99
5.3.60.0130.07014.00
5.3.50.0070.06713.88
5.3.40.0100.04313.90
5.3.30.0030.04713.66
5.3.20.0130.05713.60
5.3.10.0030.04313.64
5.3.00.0000.04013.62
5.2.170.0030.06011.20
5.2.160.0000.03311.06
5.2.150.0070.04011.14
5.2.140.0100.02310.98
5.2.130.0070.02711.09
5.2.120.0070.03311.09
5.2.110.0070.03011.10
5.2.100.0070.03011.10
5.2.90.0000.03011.10
5.2.80.0000.03010.94
5.2.70.0000.03010.95
5.2.60.0030.03011.07
5.2.50.0000.03010.96
5.2.40.0030.02710.94
5.2.30.0000.03011.01
5.2.20.0030.03010.88
5.2.10.0030.03010.88
5.2.00.0000.03310.74
5.1.60.0030.02710.38
5.1.50.0030.05310.38
5.1.40.0000.02710.38
5.1.30.0070.05310.38
5.1.20.0030.02710.38
5.1.10.0070.02010.38
5.1.00.0070.05010.38
5.0.50.0070.04010.38
5.0.40.0000.04010.38
5.0.30.0000.03010.38
5.0.20.0030.03010.38
5.0.10.0030.03310.38
5.0.00.0000.04710.38
4.4.90.0030.01310.38
4.4.80.0030.01310.38
4.4.70.0000.01710.38
4.4.60.0000.01310.38
4.4.50.0030.01310.38
4.4.40.0000.05310.38
4.4.30.0030.01310.38
4.4.20.0030.03310.38
4.4.10.0000.03710.38
4.4.00.0000.02710.38
4.3.110.0000.03010.38
4.3.100.0000.03310.38
4.3.90.0000.02310.38
4.3.80.0030.02010.38
4.3.70.0030.02310.38
4.3.60.0000.01710.38
4.3.50.0000.03710.38
4.3.40.0000.02710.38
4.3.30.0000.01310.38
4.3.20.0000.01710.38
4.3.10.0000.03010.38
4.3.00.0000.02310.38

preferences:
50.74 ms | 401 KiB | 5 Q