3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 25)); echo $hash . '<br />'; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);

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.2.60.0072.48416.54
7.2.50.0032.49216.82
7.1.200.0032.49115.68
7.1.70.0032.49817.00
7.1.60.0072.49519.82
7.1.50.0072.49517.14
7.1.00.0172.48322.36
7.0.200.0032.49816.59
7.0.140.0072.49322.18
7.0.100.0372.35719.83
7.0.90.0102.31021.62
7.0.80.2771.27719.82
7.0.70.0032.44319.84
7.0.60.0002.41719.96
7.0.50.0332.38020.24
7.0.40.0101.91320.00
7.0.30.0071.96320.03
7.0.20.0032.43720.01
7.0.10.0072.44719.99
7.0.00.0102.49019.95
5.6.280.0102.49021.12
5.6.250.0102.35720.48
5.6.240.0102.41320.49
5.6.230.0032.23720.55
5.6.220.0032.41320.65
5.6.210.0072.47320.61
5.6.200.0032.38021.03
5.6.190.0202.22321.05
5.6.180.0072.31020.89
5.6.170.0102.11720.89
5.6.160.0172.35720.99
5.6.150.0102.40321.00
5.6.140.0032.38320.88
5.6.130.0072.39021.08
5.6.120.0232.02720.91
5.6.110.0172.40021.07
5.6.100.0202.42320.95
5.6.90.0102.41020.87
5.6.80.0102.39720.44
5.6.70.0072.08720.34
5.6.60.0102.39320.42
5.6.50.0202.40320.29
5.6.40.0172.38020.33
5.6.30.0132.40320.38
5.6.20.2802.11320.34
5.6.10.0072.39720.30
5.6.00.0102.41320.39
5.5.380.0172.40320.30
5.5.370.0102.15020.34
5.5.360.0032.42720.47
5.5.350.0072.39320.39
5.5.340.0132.43020.86
5.5.330.0072.44720.80
5.5.320.0132.16020.68
5.5.310.0102.32720.87
5.5.300.0072.41320.72
5.5.290.0172.40720.84
5.5.280.0132.38020.77
5.5.270.0102.41020.68
5.5.260.0172.34720.78
5.5.250.0102.41320.68
5.5.240.0102.39020.23
5.5.230.0032.36320.25
5.5.220.0132.44020.21
5.5.210.0072.41320.12
5.5.200.0202.39720.16
5.5.190.0102.27720.13
5.5.180.0072.42720.05
5.5.160.0032.45020.13
5.5.150.0002.44320.17
5.5.140.0172.42720.19
5.5.130.0072.44719.93
5.5.120.0102.42320.19
5.5.110.0072.43320.16
5.5.100.0102.43320.01
5.5.90.0372.39320.02
5.5.80.0102.41720.11
5.5.70.0002.41319.98
5.5.60.0102.15319.97
5.5.50.0072.42319.99
5.5.40.0202.41720.03
5.5.30.0132.42719.99
5.5.20.0132.41319.86
5.5.10.0102.38019.99
5.5.00.0002.43019.89
5.4.450.0130.08019.30
5.4.440.0200.05319.30
5.4.430.0130.07019.43
5.4.420.0170.06319.46
5.4.410.0130.07319.16
5.4.400.0030.03718.97
5.4.390.0000.03319.11
5.4.380.0100.06019.25
5.4.370.0130.06318.93
5.4.360.0070.07019.06
5.4.350.0070.06319.23
5.4.340.0070.07319.11
5.4.320.0100.07018.97
5.4.310.0200.06718.88
5.4.300.0030.06719.02
5.4.290.0070.06318.77
5.4.280.0100.07018.82
5.4.270.0000.08319.04
5.4.260.0000.07319.02
5.4.250.0170.07019.09
5.4.240.0000.05018.77
5.4.230.0100.06018.92
5.4.220.0030.05318.80
5.4.210.0070.06319.10
5.4.200.0100.06718.80
5.4.190.0130.07318.92
5.4.180.0000.08718.93
5.4.170.0100.07319.02
5.4.160.0170.07019.00
5.4.150.0000.08019.00
5.4.140.0070.07316.24
5.4.130.0130.07016.31
5.4.120.0000.06716.24
5.4.110.0130.06716.31
5.4.100.0100.06716.34
5.4.90.0170.04316.21
5.4.80.0070.07316.30
5.4.70.0030.06316.25
5.4.60.0070.08016.28
5.4.50.0070.06716.17
5.4.40.0100.06716.37
5.4.30.0200.06016.37
5.4.20.0170.05716.29
5.4.10.0030.07016.21
5.4.00.0030.06715.72
5.3.290.0100.06014.65
5.3.280.0000.03714.59
5.3.270.0170.07014.54
5.3.260.0100.06014.61
5.3.250.0070.07714.58
5.3.240.0070.06714.55
5.3.230.0130.07014.54
5.3.220.0100.07314.52
5.3.210.0030.08014.42
5.3.200.0070.06014.50
5.3.190.0030.08014.53
5.3.180.0100.07314.41
5.3.170.0170.06314.42
5.3.160.0100.08014.55
5.3.150.0100.06714.41
5.3.140.0130.06014.54
5.3.130.0170.06714.53
5.3.120.0000.08714.55
5.3.110.0030.08014.52
5.3.100.0070.07714.04
5.3.90.0100.06314.02
5.3.80.0030.07313.99
5.3.70.0070.07313.97
5.3.60.0270.04714.00
5.3.50.0100.07713.80
5.3.40.0100.07713.74
5.3.30.0030.07313.90
5.3.20.0030.06313.55
5.3.10.0070.07013.61
5.3.00.0130.07013.59
5.2.170.0100.05011.16
5.2.160.0070.05711.13
5.2.150.0100.05311.13
5.2.140.0070.06311.09
5.2.130.0030.06310.96
5.2.120.0100.05011.11
5.2.110.0070.05710.96
5.2.100.0030.06310.92
5.2.90.0030.05711.05
5.2.80.0130.05711.09
5.2.70.0130.05010.96
5.2.60.0170.05011.02
5.2.50.0030.06311.04
5.2.40.0030.06311.02
5.2.30.0100.06010.96
5.2.20.0070.06010.84
5.2.10.0030.06310.90
5.2.00.0130.05010.63
5.1.60.0070.05310.02
5.1.50.0130.0479.99
5.1.40.0070.0539.97
5.1.30.0030.06010.38
5.1.20.0070.05310.26
5.1.10.0030.06010.05
5.1.00.0030.05710.11
5.0.50.0070.0438.63
5.0.40.0070.0378.42
5.0.30.0000.0638.22
5.0.20.0030.0408.04
5.0.10.0030.0478.04
5.0.00.0070.0638.27
4.4.90.0030.0337.55
4.4.80.0000.0407.55
4.4.70.0000.0377.55
4.4.60.0070.0277.55
4.4.50.0030.0337.55
4.4.40.0000.0577.55
4.4.30.0070.0307.55
4.4.20.0100.0237.55
4.4.10.0100.0237.55
4.4.00.0000.0507.55
4.3.110.0030.0337.55
4.3.100.0030.0407.55
4.3.90.0000.0377.55
4.3.80.0030.0537.55
4.3.70.0070.0277.55
4.3.60.0130.0177.55
4.3.50.0030.0307.55
4.3.40.0000.0577.55
4.3.30.0000.0377.55
4.3.20.0030.0377.55
4.3.10.0030.0337.55
4.3.00.0030.0277.55

preferences:
35.1 ms | 401 KiB | 5 Q