3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Madara is Awesome!"; $hash = password_hash($password, PASSWORD_BCRYPT, ["salt" => "MadaraIsBawsNeeds22Ch"]); //Note with salt. var_dump($hash); $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.4.00.0070.01414.84
7.3.120.0080.01114.83
7.3.110.0070.01114.91
7.3.100.0090.00914.47
7.3.90.0080.00814.80
7.3.80.0030.01214.46
7.3.70.0000.00814.52
7.3.60.0110.00714.52
7.3.50.0060.00614.80
7.3.40.0040.01114.48
7.3.30.0030.01214.77
7.3.20.0000.01516.60
7.3.10.0100.00316.45
7.3.00.0040.01116.46
7.2.250.0070.01414.82
7.2.240.0070.01414.67
7.2.230.0000.01415.14
7.2.220.0070.01115.10
7.2.210.0000.01414.98
7.2.200.0030.00614.81
7.2.190.0000.01615.00
7.2.180.0080.00414.88
7.2.170.0070.01014.74
7.2.60.0120.00316.86
7.2.00.0030.00919.43
7.1.330.0030.01015.50
7.1.320.0070.00315.79
7.1.310.0070.01315.69
7.1.300.0040.01115.73
7.1.290.0100.00615.56
7.1.280.0100.00715.88
7.1.270.0000.01515.84
7.1.260.0000.01715.54
7.1.200.0080.00315.51
7.1.100.0000.01318.00
7.1.70.0030.00617.26
7.1.60.0180.00719.17
7.1.50.0090.01217.04
7.1.00.0030.03322.42
7.0.200.0030.00516.41
7.0.140.0070.06322.11
7.0.70.0100.06319.93
7.0.60.0100.05319.98
7.0.50.0030.06720.40
7.0.40.0100.08020.22
7.0.30.0170.05320.07
7.0.20.0100.08720.09
7.0.10.0000.09320.21
7.0.00.0000.04720.11
5.6.280.0100.06321.14
5.6.220.0100.06320.64
5.6.210.0100.07720.78
5.6.200.0070.05720.98
5.6.190.0070.08721.06
5.6.180.0170.07721.03
5.6.170.0030.06721.16
5.6.160.0070.07320.96
5.6.150.0000.08021.16
5.6.140.0130.03321.19
5.6.130.0030.04721.13
5.6.120.0100.05721.08
5.6.110.0070.06721.18
5.6.100.0070.08320.95
5.6.90.0270.06321.14
5.6.80.0030.06020.54
5.6.70.0130.07320.57
5.6.60.0070.08020.57
5.6.50.0170.07720.47
5.6.40.0200.07020.45
5.6.30.0030.06720.53
5.6.20.0030.08320.46
5.6.10.0100.07720.40
5.6.00.0130.04720.33
5.5.360.0000.09720.46
5.5.350.0130.07020.42
5.5.340.0070.09020.91
5.5.330.0100.07720.91
5.5.320.0070.08320.86
5.5.310.0030.05720.80
5.5.300.0100.08320.90
5.5.290.0070.04720.82
5.5.280.0070.06020.79
5.5.270.0170.07320.86
5.5.260.0130.08320.90
5.5.250.0170.08020.57
5.5.240.0070.05320.21
5.5.230.0000.08320.04
5.5.220.0000.05720.13
5.5.210.0070.08020.20
5.5.200.0130.07720.16
5.5.190.0070.06720.29
5.5.180.0100.08020.28
5.5.160.0070.04020.27
5.5.150.0100.07320.25
5.5.140.0070.06020.26
5.5.130.0070.08320.25
5.5.120.0130.07720.20
5.5.110.0130.07320.23
5.5.100.0130.07720.13
5.5.90.0170.07320.14
5.5.80.0030.08020.15
5.5.70.0200.07320.09
5.5.60.0030.08020.03
5.5.50.0030.04020.12
5.5.40.0030.04020.11
5.5.30.0070.05320.02
5.5.20.0170.04320.07
5.5.10.0030.04020.00
5.5.00.0030.04020.04
5.4.450.0130.07719.36
5.4.440.0100.08019.45
5.4.430.0070.07719.24
5.4.420.0170.07319.39
5.4.410.0100.08019.39
5.4.400.0070.08018.97
5.4.390.0000.05719.06
5.4.380.0100.06718.98
5.4.370.0000.08018.98
5.4.360.0070.07719.10
5.4.350.0070.07319.03
5.4.340.0000.08718.94
5.4.320.0070.08019.11
5.4.310.0100.06019.03
5.4.300.0030.08018.89
5.4.290.0130.03319.05
5.4.280.0030.04719.08
5.4.270.0200.06018.81
5.4.260.0100.06018.98
5.4.250.0130.07719.10
5.4.240.0030.06319.02
5.4.230.0130.07319.04
5.4.220.0070.07718.97
5.4.210.0170.06318.77
5.4.200.0100.06318.79
5.4.190.0030.04019.02
5.4.180.0070.06019.09
5.4.170.0070.03719.04
5.4.160.0030.04019.01
5.4.150.0070.03719.00
5.4.140.0100.07016.29
5.4.130.0070.05716.26
5.4.120.0000.05716.37
5.4.110.0000.04016.32
5.4.100.0030.03716.39
5.4.90.0000.04316.36
5.4.80.0000.05716.18
5.4.70.0030.07716.40
5.4.60.0030.03716.35
5.4.50.0030.04316.30
5.4.40.0070.03316.25
5.4.30.0070.06016.27
5.4.20.0030.03316.27
5.4.10.0070.04016.18
5.4.00.0030.03715.72
5.3.290.0000.06714.50
5.3.280.0130.03714.58
5.3.270.0030.04314.59
5.3.260.0030.03714.61
5.3.250.0000.04014.54
5.3.240.0070.03314.54
5.3.230.0000.07714.59
5.3.220.0000.04014.43
5.3.210.0000.06314.43
5.3.200.0000.04314.55
5.3.190.0070.03714.53
5.3.180.0070.06314.53
5.3.170.0030.04014.50
5.3.160.0030.03714.57
5.3.150.0070.05014.57
5.3.140.0030.03714.46
5.3.130.0030.03714.51
5.3.120.0000.04014.38
5.3.110.0070.03314.41
5.3.100.0100.03714.02
5.3.90.0070.05014.01
5.3.80.0030.05013.87
5.3.70.0100.05013.98
5.3.60.0000.04013.99
5.3.50.0000.04013.94
5.3.40.0100.03013.93
5.3.30.0000.04713.90
5.3.20.0070.03313.68
5.3.10.0000.07013.52
5.3.00.0070.03313.49
5.2.170.0030.03312.67
5.2.160.0030.02712.67
5.2.150.0030.03012.67
5.2.140.0030.03012.67
5.2.130.0000.03012.67
5.2.120.0030.02712.67
5.2.110.0100.03312.67
5.2.100.0030.02712.67
5.2.90.0030.02712.67
5.2.80.0000.03012.67
5.2.70.0030.03712.67
5.2.60.0000.03012.67
5.2.50.0000.03012.67
5.2.40.0070.03712.67
5.2.30.0000.03012.67
5.2.20.0030.04012.67
5.2.10.0030.06712.67
5.2.00.0100.05312.67
5.1.60.0030.03712.67
5.1.50.0030.03312.67
5.1.40.0030.04012.67
5.1.30.0070.06012.67
5.1.20.0000.06712.67
5.1.10.0000.06312.67
5.1.00.0070.05712.67
5.0.50.0030.04312.67
5.0.40.0000.04312.67
5.0.30.0070.04312.67
5.0.20.0070.02712.67
5.0.10.0070.02712.67
5.0.00.0070.03312.67
4.4.90.0000.01712.67
4.4.80.0070.01012.67
4.4.70.0000.02312.67
4.4.60.0000.02012.67
4.4.50.0030.03312.67
4.4.40.0000.05312.67
4.4.30.0070.03312.67
4.4.20.0000.03712.67
4.4.10.0030.03712.67
4.4.00.0000.04312.67
4.3.110.0100.02012.67
4.3.100.0000.02712.67
4.3.90.0000.02312.67
4.3.80.0100.04312.67
4.3.70.0070.03012.67
4.3.60.0000.03312.67
4.3.50.0030.02712.67
4.3.40.0030.04312.67
4.3.30.0000.03012.67
4.3.20.0070.03012.67
4.3.10.0070.01712.67
4.3.00.0000.02712.67

preferences:
34.19 ms | 400 KiB | 5 Q