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.0130.13514.71
7.3.120.0000.14014.93
7.3.110.0030.13714.74
7.3.100.0020.13714.90
7.3.90.0050.12814.72
7.3.80.0050.13514.81
7.3.70.0070.12614.75
7.3.60.0100.13014.75
7.3.50.0050.13014.81
7.3.40.0070.13214.69
7.3.30.0080.12614.45
7.3.20.0030.13216.39
7.3.10.0060.13316.51
7.3.00.0070.12916.54
7.2.250.0100.13015.10
7.2.240.0050.13414.84
7.2.230.0020.13815.16
7.2.220.0050.13115.08
7.2.210.0050.13014.92
7.2.200.0030.12914.89
7.2.190.0030.13314.82
7.2.180.0100.12514.89
7.2.170.0080.12914.94
7.2.160.0030.13214.85
7.2.150.0070.12716.79
7.2.140.0030.13716.84
7.2.130.0030.13116.57
7.2.120.0080.12616.51
7.2.110.0080.13716.53
7.2.100.0100.13016.64
7.2.90.0050.13216.65
7.2.80.0080.13116.47
7.2.70.0070.13516.61
7.2.60.0060.13116.81
7.2.50.0070.13416.68
7.2.40.0080.13316.51
7.2.30.0070.12916.73
7.2.20.0130.13316.45
7.2.10.0050.13116.63
7.2.00.0090.13117.75
7.1.330.0050.13315.78
7.1.320.0000.13715.88
7.1.310.0070.12515.70
7.1.300.0000.13515.73
7.1.290.0050.13215.71
7.1.280.0070.13315.66
7.1.270.0030.13015.70
7.1.260.0080.12715.80
7.1.250.0050.13115.61
7.1.200.0170.12715.48
7.1.100.0030.12918.25
7.1.70.0030.12417.00
7.1.60.0070.13119.46
7.1.50.0160.12216.66
7.1.00.0000.24022.35
7.0.200.0070.12016.87
7.0.140.0070.22022.09
7.0.60.0330.19019.85
7.0.50.0130.21017.77
7.0.40.0100.16720.30
7.0.30.0270.15020.18
7.0.20.0270.16320.16
7.0.10.0030.18020.21
7.0.00.0100.20320.05
5.6.280.0000.23720.88
5.6.210.0030.21020.50
5.6.200.0000.22718.25
5.6.190.0070.23020.47
5.6.180.0170.17320.83
5.6.170.0430.15720.63
5.6.160.0030.20720.54
5.6.150.0030.21018.14
5.6.140.0030.16718.22
5.6.130.0030.22718.32
5.6.120.0030.16021.17
5.6.110.0230.15321.04
5.6.100.0030.17321.04
5.6.90.0100.21720.90
5.6.80.0070.22320.54
5.6.70.4470.16720.50
5.5.350.0330.21020.33
5.5.340.0000.16017.97
5.5.330.0100.15720.53
5.5.320.0270.20320.57
5.5.310.0270.15020.32
5.5.300.0130.15018.03
5.5.290.0100.18718.01
5.5.280.0100.23020.90
5.5.270.0100.16720.71
5.5.260.0130.22020.80
5.5.250.0170.14720.49
5.5.240.0270.18020.28
5.4.450.4730.03719.11
5.4.440.4700.04319.13
5.4.430.4730.03719.41
5.4.420.4400.04019.25
5.4.410.4930.03319.44
5.4.400.3730.04318.79
5.4.390.4430.04319.09
5.4.380.4670.03719.13
5.4.370.4630.03719.11
5.4.360.4570.03718.79
5.4.350.4230.03319.09
5.4.340.4870.04718.88
5.4.320.5130.05019.05
5.4.310.4600.03719.06
5.4.300.4230.03718.75
5.4.290.4630.03019.08
5.4.280.4730.03319.06
5.4.270.4130.04319.09
5.4.260.4270.03718.88
5.4.250.4300.02719.05
5.4.240.4730.03019.12
5.4.230.4070.03719.15
5.4.220.4700.03719.23
5.4.210.4070.03719.21
5.4.200.2800.03719.09
5.4.190.2800.03719.07
5.4.180.3200.03318.80
5.4.170.3730.03719.21
5.4.160.3670.03319.23
5.4.150.4370.04319.11
5.4.140.3600.04016.45
5.4.130.3570.04016.45
5.4.120.3830.03716.26
5.4.110.4400.03716.34
5.4.100.4130.03316.06
5.4.90.0000.05716.45
5.4.80.2900.04316.44
5.4.70.4670.03716.18
5.4.60.4800.03716.45
5.4.50.4370.03316.36
5.4.40.4330.04016.20
5.4.30.4130.03316.31
5.4.20.3500.03716.46
5.4.10.4070.03716.19
5.4.00.3770.02715.90
5.3.290.4730.03714.49
5.3.280.4630.04714.68
5.3.270.3300.03714.45
5.3.260.3130.03014.55
5.3.250.3870.05714.46
5.3.240.3970.03714.70
5.3.230.4070.03314.43
5.3.220.4130.03714.50
5.3.210.4300.03314.47
5.3.200.4600.03014.51
5.3.190.0030.07314.41
5.3.180.0130.06014.39
5.3.170.4670.03714.65
5.3.160.4600.04014.51
5.3.150.4500.03314.39
5.3.140.4200.03714.46
5.3.130.3800.04014.49
5.3.120.4270.04714.49
5.3.110.4070.03714.49
5.3.100.3770.02714.08
5.3.90.4100.04313.89
5.3.80.2530.03313.99
5.3.70.0100.03313.87
5.3.60.0070.04313.84
5.3.50.0070.07014.04
5.3.40.3870.03713.89
5.3.30.4370.03013.82
5.3.20.4630.02713.78
5.3.10.4330.03313.64
5.3.00.4130.04013.60
5.2.170.3100.02310.98
5.2.160.3530.03311.16
5.2.150.3900.03011.23
5.2.140.3870.03010.99
5.2.130.4100.02711.25
5.2.120.4030.02311.04
5.2.110.3830.03011.14
5.2.100.2970.03311.04
5.2.90.2670.02010.96
5.2.80.3730.03011.10
5.2.70.3430.03010.95
5.2.60.2970.03011.09
5.2.50.3400.02310.95
5.2.40.2500.02711.03
5.2.30.2800.03310.85
5.2.20.2570.03010.89
5.2.10.2930.03010.85
5.2.00.3030.02710.71
5.1.60.3200.02310.08
5.1.50.2930.02310.07
5.1.40.2430.0279.91
5.1.30.2670.02710.23
5.1.20.2530.03010.35
5.1.10.2870.02710.04
5.1.00.2830.03010.11
5.0.50.1870.0179.70
5.0.40.1600.0179.70
5.0.30.1300.0339.70
5.0.20.1170.0239.70
5.0.10.1530.0179.70
5.0.00.1930.0339.70
4.4.90.1200.0179.70
4.4.80.1630.0179.70
4.4.70.1670.0179.70
4.4.60.1770.0139.70
4.4.50.1400.0179.70
4.4.40.1600.0279.70
4.4.30.1400.0139.70
4.4.20.1200.0179.70
4.4.10.1370.0179.70
4.4.00.1730.0239.70
4.3.110.1700.0179.70
4.3.100.1830.0139.70
4.3.90.1900.0139.70
4.3.80.1870.0279.70
4.3.70.1800.0179.70
4.3.60.1830.0139.70
4.3.50.1900.0139.70
4.3.40.1770.0239.70
4.3.30.1070.0179.70
4.3.20.0930.0239.70
4.3.10.1030.0239.70
4.3.00.0830.0179.70

preferences:
37.39 ms | 401 KiB | 5 Q