3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Madara is Awesome!"; $hash = password_hash($password, PASSWORD_BCRYPT, ["salt" => "MadaraIsBawsNeeds22cheedededr"]); //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.14014.76
7.3.120.0100.12614.86
7.3.110.0100.13414.54
7.3.100.0130.13114.59
7.3.90.0070.13114.77
7.3.80.0030.12314.45
7.3.70.0030.13714.71
7.3.60.0000.13314.79
7.3.50.0030.13414.77
7.3.40.0000.13514.82
7.3.30.0030.13014.53
7.3.20.0100.12516.50
7.3.10.0070.13016.43
7.3.00.0030.13116.50
7.2.250.0070.13814.80
7.2.240.0130.13815.11
7.2.230.0100.13014.66
7.2.220.0070.12614.85
7.2.210.0030.13514.40
7.2.200.0070.13214.84
7.2.190.0070.13614.77
7.2.180.0030.13914.84
7.2.170.0070.12914.84
7.2.60.0070.12816.81
7.2.00.0070.13319.15
7.1.330.0000.13515.71
7.1.320.0130.12715.73
7.1.310.0030.13315.54
7.1.300.0070.12915.80
7.1.290.0000.13315.75
7.1.280.0030.12815.87
7.1.270.0030.13715.73
7.1.260.0000.13115.45
7.1.200.0070.12515.48
7.1.100.0070.13318.13
7.1.70.0030.12816.96
7.1.60.0170.20219.17
7.1.50.0070.14216.65
7.1.00.0070.20722.51
7.0.200.0300.13416.66
7.0.140.0070.21322.09
7.0.100.0100.20719.99
7.0.90.0070.16319.89
7.0.80.0070.17319.86
7.0.70.0130.20019.94
7.0.60.0070.16019.93
7.0.50.0270.19720.30
7.0.40.0130.21020.04
7.0.30.0030.22020.05
7.0.20.0100.22020.10
7.0.10.0070.16720.16
7.0.00.0130.17320.12
5.6.280.0000.24021.09
5.6.250.0100.17020.46
5.6.240.0070.21320.52
5.6.230.0130.20320.48
5.6.220.0130.23320.48
5.6.210.0030.21020.57
5.6.200.0070.22721.01
5.6.190.0030.21720.95
5.6.180.0130.18021.03
5.6.170.0130.23720.97
5.6.160.0070.23020.95
5.6.150.0070.22321.07
5.6.140.0200.22720.91
5.6.130.0200.21020.92
5.6.120.0070.21720.95
5.6.110.0130.20721.08
5.6.100.0170.22020.95
5.6.90.0070.19720.92
5.6.80.0030.16320.48
5.6.70.0030.16320.38
5.6.60.0070.16020.38
5.6.50.0000.18020.39
5.6.40.0070.13720.51
5.6.30.0100.16020.34
5.6.20.0100.14020.51
5.6.10.0070.16320.38
5.6.00.0130.16020.44
5.5.380.0170.20320.54
5.5.370.0030.20720.44
5.5.360.0070.20320.39
5.5.350.0130.20720.41
5.5.340.0100.21020.64
5.5.330.0200.23320.82
5.5.320.0270.16720.83
5.5.310.0130.20720.61
5.5.300.0130.18720.88
5.5.290.0130.20020.81
5.5.280.0030.23720.90
5.5.270.0030.21720.88
5.5.260.0070.18020.78
5.5.250.0030.18320.55
5.5.240.0030.17320.27
5.5.230.0030.13320.16
5.5.220.0070.13320.25
5.5.210.0000.21020.27
5.5.200.0100.15720.15
5.5.190.0070.16020.09
5.5.180.0100.13720.27
5.5.160.0070.15720.21
5.5.150.0030.19320.07
5.5.140.0000.16720.20
5.5.130.0070.16020.14
5.5.120.0070.16020.23
5.5.110.0200.18320.26
5.5.100.0030.17020.17
5.5.90.0000.20020.15
5.5.80.0030.17719.96
5.5.70.0030.24720.05
5.5.60.0070.19719.93
5.5.50.0030.17020.13
5.5.40.0100.23020.05
5.5.30.0100.21720.03
5.5.20.0070.22320.04
5.5.10.0070.21020.02
5.5.00.0070.23719.99
5.4.450.0030.08319.40
5.4.440.0070.08019.39
5.4.430.0170.07319.42
5.4.420.0170.04719.38
5.4.410.0070.06319.14
5.4.400.0000.04018.81
5.4.390.0000.04718.90
5.4.380.0030.05019.23
5.4.370.0070.03318.90
5.4.360.0100.03019.02
5.4.350.0000.04019.02
5.4.340.0130.03018.78
5.4.320.0100.03718.90
5.4.310.0000.04019.03
5.4.300.0070.03319.07
5.4.290.0000.03719.24
5.4.280.0070.04019.09
5.4.270.0000.04019.07
5.4.260.0070.03319.24
5.4.250.0030.03319.06
5.4.240.0100.03718.79
5.4.230.0130.07319.12
5.4.220.0100.07319.04
5.4.210.0130.06719.04
5.4.200.0070.06318.82
5.4.190.0130.06719.04
5.4.180.0100.07719.13
5.4.170.0070.04319.13
5.4.160.0000.08018.81
5.4.150.0200.07019.01
5.4.140.0100.07016.23
5.4.130.0100.07316.31
5.4.120.0070.06316.30
5.4.110.0130.04316.42
5.4.100.0030.08316.35
5.4.90.0100.06316.42
5.4.80.0130.07016.40
5.4.70.0070.03716.20
5.4.60.0070.07316.18
5.4.50.0100.07016.18
5.4.40.0030.05716.36
5.4.30.0130.04016.40
5.4.20.0070.06716.32
5.4.10.0030.06016.41
5.4.00.0170.06315.76
5.3.290.0000.04314.52
5.3.280.0030.05014.58
5.3.270.0070.08014.61
5.3.260.0100.07014.43
5.3.250.0070.04314.43
5.3.240.0030.06714.55
5.3.230.0070.04014.59
5.3.220.0070.07714.50
5.3.210.0000.07714.55
5.3.200.0070.07314.51
5.3.190.0100.06014.52
5.3.180.0130.06014.43
5.3.170.0100.06014.52
5.3.160.0070.05314.43
5.3.150.0070.08314.39
5.3.140.0070.07714.51
5.3.130.0200.06014.51
5.3.120.0070.07714.51
5.3.110.0030.05314.56
5.3.100.0100.07314.00
5.3.90.0070.06313.88
5.3.80.0130.06713.96
5.3.70.0130.06313.79
5.3.60.0130.03314.01
5.3.50.0100.06313.79
5.3.40.0030.07013.71
5.3.30.0030.04713.92
5.3.20.0000.05713.69
5.3.10.0070.07713.59
5.3.00.0100.06313.41
5.2.170.0030.04711.18
5.2.160.0070.06310.93
5.2.150.0000.04011.21
5.2.140.0070.05311.16
5.2.130.0100.03311.05
5.2.120.0100.05711.02
5.2.110.0070.04011.06
5.2.100.0030.06310.93
5.2.90.0030.06011.05
5.2.80.0000.06311.01
5.2.70.0130.04011.09
5.2.60.0100.05710.84
5.2.50.0030.03711.01
5.2.40.0130.05310.86
5.2.30.0070.06011.00
5.2.20.0070.05310.99
5.2.10.0100.04710.88
5.2.00.0030.05010.77
5.1.60.0030.0309.83
5.1.50.0000.0379.99
5.1.40.0070.03710.01
5.1.30.0070.04710.38
5.1.20.0000.05710.38
5.1.10.0100.05010.05
5.1.00.0030.05710.05
5.0.50.0000.0538.93
5.0.40.0030.0478.93
5.0.30.0030.0638.93
5.0.20.0070.0208.93
5.0.10.0070.0478.93
5.0.00.0070.0538.93
4.4.90.0070.0308.93
4.4.80.0030.0338.93
4.4.70.0030.0338.93
4.4.60.0030.0278.93
4.4.50.0000.0278.93
4.4.40.0000.0438.93
4.4.30.0070.0308.93
4.4.20.0070.0308.93
4.4.10.0000.0338.93
4.4.00.0000.0378.93
4.3.110.0000.0208.93
4.3.100.0000.0308.93
4.3.90.0030.0308.93
4.3.80.0030.0338.93
4.3.70.0070.0238.93
4.3.60.0030.0338.93
4.3.50.0070.0308.93
4.3.40.0000.0378.93
4.3.30.0030.0338.93
4.3.20.0000.0378.93
4.3.10.0030.0338.93
4.3.00.0000.0378.93

preferences:
62.11 ms | 401 KiB | 5 Q