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.10.0100.20114.95
7.4.00.0100.19514.88
7.3.130.0090.19514.68
7.3.120.0130.20014.73
7.3.110.0030.20514.45
7.3.100.0030.19214.61
7.3.90.0030.20114.95
7.3.80.0000.18414.76
7.3.70.0100.19014.80
7.3.60.0130.18014.77
7.3.50.0070.19514.69
7.3.40.0070.18814.80
7.3.30.0070.18814.83
7.3.20.0000.18916.72
7.3.10.0070.18616.63
7.3.00.0070.18716.63
7.2.260.0070.19414.91
7.2.250.0100.20214.79
7.2.240.0030.19415.12
7.2.230.0000.20314.84
7.2.220.0030.19115.09
7.2.210.0070.18414.85
7.2.200.0070.19314.86
7.2.190.0070.20614.91
7.2.180.0100.18315.11
7.2.170.0130.18415.16
7.2.160.0030.18214.90
7.2.150.0030.18416.79
7.2.140.0030.19216.55
7.2.130.0030.18316.94
7.2.120.0070.17916.84
7.2.110.0030.20716.82
7.2.100.0070.20016.93
7.2.90.0070.19317.02
7.2.80.0070.18416.63
7.2.70.0000.19616.93
7.2.60.0020.18716.89
7.2.50.0030.19016.93
7.2.40.0160.18516.95
7.2.30.0100.18316.97
7.2.20.0000.19816.59
7.2.10.0070.19116.62
7.2.00.0030.19518.11
7.1.330.0100.19215.84
7.1.320.0070.19415.63
7.1.310.0030.19115.97
7.1.300.0000.19315.81
7.1.290.0030.18215.58
7.1.280.0000.18915.84
7.1.270.0030.19515.83
7.1.260.0100.18615.56
7.1.250.0100.19615.78
7.1.240.0070.18815.88
7.1.230.0000.19015.85
7.1.220.0000.18715.78
7.1.210.0070.18315.71
7.1.200.0030.18915.77
7.1.190.0070.18815.79
7.1.180.0030.18515.48
7.1.170.0070.18815.66
7.1.160.0100.19015.93
7.1.150.0030.18415.95
7.1.140.0030.18715.97
7.1.130.0070.18815.86
7.1.120.0100.18515.82
7.1.110.0070.20015.95
7.1.100.0050.19716.99
7.1.90.0000.19215.86
7.1.80.0030.18815.95
7.1.70.0070.20316.49
7.1.60.0050.19217.70
7.1.50.0080.22016.18
7.1.40.0070.19015.55
7.1.30.0100.19815.74
7.1.20.0030.19715.96
7.1.10.0030.18415.63
7.1.00.0050.24319.13
7.0.330.0070.19615.34
7.0.320.0000.19915.54
7.0.310.0030.18715.34
7.0.300.0030.18915.35
7.0.290.0100.17815.48
7.0.280.0000.18615.36
7.0.270.0000.18815.36
7.0.260.0070.19015.46
7.0.250.0030.19015.38
7.0.240.0030.18815.57
7.0.230.0030.18915.61
7.0.220.0000.19615.46
7.0.210.0130.18215.11
7.0.200.0030.19116.23
7.0.190.0130.17415.29
7.0.180.0030.18115.45
7.0.170.0030.19015.48
7.0.160.0130.18515.16
7.0.150.0070.19415.40
7.0.140.0050.22818.72
7.0.130.0070.18915.58
7.0.120.0030.18715.46
7.0.110.0030.18815.52
7.0.100.0070.18215.34
7.0.90.0030.19315.49
7.0.80.0000.19215.44
7.0.70.0080.19018.54
7.0.60.0030.20118.59
7.0.50.0020.18818.83
7.0.40.0070.23816.59
7.0.30.0030.24616.79
7.0.20.0050.21516.73
7.0.10.0070.23316.69
7.0.00.0030.23616.79
5.6.400.0030.18614.25
5.6.390.0070.18214.42
5.6.380.0070.19114.31
5.6.370.0030.18914.32
5.6.360.0030.19314.09
5.6.350.0070.18914.26
5.6.340.0030.19214.19
5.6.330.0030.18414.23
5.6.320.0070.19914.00
5.6.310.0000.19014.33
5.6.300.0000.18614.24
5.6.290.0070.19014.44
5.6.280.0080.23517.69
5.6.270.0070.18714.27
5.6.260.0070.18314.41
5.6.250.0070.18414.45
5.6.240.0070.18514.47
5.6.230.0000.19314.32
5.6.220.0000.19417.33
5.6.210.0030.18817.43
5.6.200.0020.18817.53
5.6.190.0070.21417.82
5.6.180.0080.22817.70
5.6.170.0070.23217.57
5.6.160.0020.24217.72
5.6.150.0080.23617.75
5.6.140.0080.20717.76
5.6.130.0070.23017.52
5.6.120.0070.21117.54
5.6.110.0020.23817.58
5.6.100.0080.21017.75
5.6.90.0030.24217.63
5.6.80.0070.22617.21
5.6.70.0070.22817.30
5.6.60.0020.23117.22
5.6.50.0030.23817.35
5.6.40.0030.22917.27
5.6.30.0000.23717.31
5.6.20.0050.22717.32
5.6.10.0000.24617.17
5.6.00.0030.23717.34
5.5.380.0070.19014.31
5.5.370.0030.19014.52
5.5.360.0080.18817.14
5.5.350.0000.19917.32
5.5.340.0050.20717.61
5.5.330.0050.20717.49
5.5.320.0120.22617.61
5.5.310.0050.23717.34
5.5.300.0050.23017.52
5.5.290.0030.22017.47
5.5.280.0020.22217.54
5.5.270.0050.23517.44
5.5.260.0080.23117.56
5.5.250.0050.23517.42
5.5.240.0030.23717.26
5.5.230.0170.22717.11
5.5.220.0070.23317.34
5.5.210.0050.23417.07
5.5.200.0080.23517.23
5.5.190.0070.22617.17
5.5.180.0000.20817.13
5.5.170.0030.18114.08
5.5.160.0050.24717.05
5.5.150.0100.22617.04
5.5.140.0030.24017.15
5.5.130.0020.23617.26
5.5.120.0020.20317.07
5.5.110.0020.22017.16
5.5.100.0070.20117.20
5.5.90.0050.21316.99
5.5.80.0030.22517.20
5.5.70.0070.22917.11
5.5.60.0050.22917.12
5.5.50.0050.23017.01
5.5.40.0070.23317.00
5.5.30.0050.22517.08
5.5.20.0050.24117.11
5.5.10.0070.22717.12
5.5.00.0070.24216.96
5.4.450.0030.04315.11
5.4.440.0070.04215.30
5.4.430.0030.04314.88
5.4.420.0010.04115.04
5.4.410.0050.04214.89
5.4.400.0050.03915.04
5.4.390.0080.03815.00
5.4.380.0020.04314.94
5.4.370.0020.04414.84
5.4.360.0000.04714.96
5.4.350.0050.02815.02
5.4.340.0020.04215.01
5.4.330.0000.00710.71
5.4.320.0090.03814.91
5.4.310.0050.03814.78
5.4.300.0030.03615.01
5.4.290.0020.02814.91
5.4.280.0070.02815.05
5.4.270.0020.04114.79
5.4.260.0080.03314.88
5.4.250.0050.03714.82
5.4.240.0070.04314.81
5.4.230.0000.03614.86
5.4.220.0030.04114.76
5.4.210.0030.02015.04
5.4.200.0030.03214.99
5.4.190.0050.03914.95
5.4.180.0070.04114.68
5.4.170.0020.03914.86
5.4.160.0100.03814.92
5.4.150.0020.04314.92
5.4.140.0090.03613.51
5.4.130.0070.03513.59
5.4.120.0040.03513.57
5.4.110.0010.04013.72
5.4.100.0030.02813.61
5.4.90.0000.04013.69
5.4.80.0040.03713.62
5.4.70.0050.03713.59
5.4.60.0020.04313.50
5.4.50.0030.03913.57
5.4.40.0050.03813.67
5.4.30.0050.03113.59
5.4.20.0060.03513.59
5.4.10.0040.04013.66
5.4.00.0050.02713.13
5.3.290.0030.05714.61
5.3.280.0030.05314.57
5.3.270.0030.07714.42
5.3.260.0070.07014.45
5.3.250.0100.06314.54
5.3.240.0030.07714.51
5.3.230.0070.07314.41
5.3.220.0030.06014.55
5.3.210.0130.05314.42
5.3.200.0030.07714.56
5.3.190.0070.07014.40
5.3.180.0070.07714.38
5.3.170.0030.07314.50
5.3.160.0030.07314.47
5.3.150.0000.07314.56
5.3.140.0030.06714.54
5.3.130.0030.08014.54
5.3.120.0070.07714.50
5.3.110.0030.05714.55
5.3.100.0030.06313.96
5.3.90.0000.06313.86
5.3.80.0000.05013.78
5.3.70.0100.06313.87
5.3.60.0000.06313.97
5.3.50.0000.08013.94
5.3.40.0000.05313.93
5.3.30.0070.07013.88
5.3.20.0030.07013.62
5.3.10.0000.07013.51
5.3.00.0070.04313.49
5.2.170.0030.04712.40
5.2.160.0030.05012.40
5.2.150.0070.04312.40
5.2.140.0070.06012.40
5.2.130.0000.06712.40
5.2.120.0000.06712.40
5.2.110.0000.05712.40
5.2.100.0070.04712.40
5.2.90.0000.06312.40
5.2.80.0030.04312.40
5.2.70.0000.05312.40
5.2.60.0030.06312.40
5.2.50.0070.05012.40
5.2.40.0100.05712.40
5.2.30.0030.06312.40
5.2.20.0070.05712.40
5.2.10.0030.06312.40
5.2.00.0000.05712.40
5.1.60.0000.05012.40
5.1.50.0000.03712.40
5.1.40.0000.05712.40
5.1.30.0030.05312.40
5.1.20.0070.05312.40
5.1.10.0030.05012.40
5.1.00.0030.05312.40
5.0.50.0070.03712.40
5.0.40.0030.03712.40
5.0.30.0030.06712.40
5.0.20.0030.04012.40
5.0.10.0030.04312.40
5.0.00.0030.05312.40
4.4.90.0030.03312.40
4.4.80.0000.03712.40
4.4.70.0070.03312.40
4.4.60.0000.04012.40
4.4.50.0030.03312.40
4.4.40.0000.05312.40
4.4.30.0000.03312.40
4.4.20.0000.03712.40
4.4.10.0030.03712.40
4.4.00.0030.05712.40
4.3.110.0030.03712.40
4.3.100.0030.03712.40
4.3.90.0070.02712.40
4.3.80.0000.05712.40
4.3.70.0030.02312.40
4.3.60.0030.03712.40
4.3.50.0000.04012.40
4.3.40.0030.05312.40
4.3.30.0000.02012.40
4.3.20.0000.03012.40
4.3.10.0030.03712.40
4.3.00.0030.02712.40

preferences:
38.01 ms | 401 KiB | 5 Q