3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Madara is Awesome!"; $hash = password_hash($password, PASSWORD_BCRYPT, ["salt" => "MadaraIsBawsNeeds22chr"]); //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.2.60.0070.12916.62
7.2.00.0070.13119.36
7.1.200.0000.13415.70
7.1.100.0100.12718.02
7.1.70.0070.12316.96
7.1.60.0130.19219.17
7.1.50.0030.15816.64
7.1.00.0030.14322.24
7.0.200.0030.12916.55
7.0.140.0000.23022.08
7.0.60.0000.21721.83
7.0.50.0070.17317.83
7.0.40.0170.25720.35
7.0.30.0330.25020.07
7.0.20.0200.20320.20
7.0.10.0000.22020.10
7.0.00.0130.16720.29
5.6.280.0000.24020.91
5.6.210.0270.24020.66
5.6.200.0030.16718.19
5.6.190.0100.22020.77
5.6.180.0370.18020.45
5.6.170.0270.28320.46
5.6.160.0130.19320.46
5.6.150.0200.20018.27
5.6.140.0070.22318.14
5.6.130.0200.22718.18
5.6.120.0070.20721.00
5.6.110.0130.22320.88
5.6.100.0100.18020.96
5.6.90.0070.18020.95
5.6.80.0100.23020.40
5.5.350.4330.15720.29
5.5.340.0100.20718.00
5.5.330.0070.23720.36
5.5.320.0230.18020.20
5.5.310.0300.23320.30
5.5.300.0130.21317.95
5.5.290.0000.16717.97
5.5.280.0170.21720.86
5.5.270.0130.16020.75
5.5.260.0130.22320.86
5.5.250.0030.21020.57
5.5.240.0030.13720.25
5.4.450.4570.03719.20
5.4.440.3970.03319.32
5.4.430.3570.03719.36
5.4.420.3570.03319.19
5.4.410.3730.03719.08
5.4.400.3800.04319.20
5.4.390.4430.03718.97
5.4.380.3800.03319.20
5.4.370.3600.03319.14
5.4.360.4230.03718.87
5.4.350.3700.03719.02
5.4.340.3770.04019.15
5.4.320.4370.03718.88
5.4.310.3900.04019.26
5.4.300.4400.03319.20
5.4.290.4470.04018.88
5.4.280.4470.04019.04
5.4.270.5600.04319.00
5.4.260.4600.03718.92
5.4.250.0000.08319.10
5.4.240.0100.06719.03
5.4.230.4530.04019.15
5.4.220.4370.03019.20
5.4.210.3670.03319.06
5.4.200.3630.03718.99
5.4.190.3470.03018.92
5.4.180.3300.04019.07
5.4.170.3600.04019.07
5.4.160.3800.04319.04
5.4.150.3500.03719.16
5.4.140.3600.03716.32
5.4.130.3530.03716.22
5.4.120.3930.04316.22
5.4.110.4530.03716.36
5.4.100.3900.03316.13
5.4.90.3570.03716.33
5.4.80.3870.03716.14
5.4.70.4000.03716.37
5.4.60.4530.04316.46
5.4.50.3530.03016.36
5.4.40.4530.03716.32
5.4.30.4270.03316.37
5.4.20.4100.04016.33
5.4.10.4070.03016.23
5.4.00.4130.03715.60
5.3.290.4470.03314.64
5.3.280.3700.03714.61
5.3.270.3570.04014.40
5.3.260.3570.04014.42
5.3.250.3430.03014.54
5.3.240.3600.03014.55
5.3.230.3800.04014.39
5.3.220.4200.04314.51
5.3.210.3800.04314.50
5.3.200.3870.04314.50
5.3.190.3730.04014.54
5.3.180.3870.04314.49
5.3.170.3500.04014.46
5.3.160.5670.04014.50
5.3.150.4000.02714.50
5.3.140.4500.03714.49
5.3.130.3870.03714.44
5.3.120.3900.04014.49
5.3.110.4070.04014.48
5.3.100.3800.04013.98
5.3.90.3800.04014.05
5.3.80.3630.03313.95
5.3.70.4100.04313.83
5.3.60.3970.02713.96
5.3.50.3470.04013.73
5.3.40.3900.03713.77
5.3.30.4000.04313.75
5.3.20.3700.03013.63
5.3.10.4530.03713.47
5.3.00.4530.03713.57
5.2.170.3230.02711.09
5.2.160.3130.02011.13
5.2.150.3230.03311.05
5.2.140.3500.02711.09
5.2.130.3430.02711.09
5.2.120.3970.02711.09
5.2.110.3730.02311.03
5.2.100.3370.03011.08
5.2.90.3230.02311.04
5.2.80.3270.02711.03
5.2.70.3770.03311.02
5.2.60.3600.03311.03
5.2.50.2930.03310.99
5.2.40.2730.03011.07
5.2.30.2570.03310.93
5.2.20.2370.03311.11
5.2.10.2770.02310.89
5.2.00.2830.01710.57
5.1.60.2530.02010.01
5.1.50.3270.0239.95
5.1.40.2930.02010.05
5.1.30.2900.03010.34
5.1.20.3300.02310.35
5.1.10.3070.02310.04
5.1.00.2870.03010.08
5.0.50.1830.0208.62
5.0.40.1430.0208.35
5.0.30.1770.0338.27
5.0.20.1670.0208.26
5.0.10.1470.0208.16
5.0.00.1470.0308.13
4.4.90.1730.0206.02
4.4.80.1330.0206.02
4.4.70.1430.0176.02
4.4.60.1230.0176.02
4.4.50.1400.0176.02
4.4.40.0930.0306.02
4.4.30.1470.0136.02
4.4.20.1800.0206.02
4.4.10.1370.0206.02
4.4.00.1800.0236.02
4.3.110.1770.0176.02
4.3.100.1670.0176.02
4.3.90.1700.0176.02
4.3.80.1770.0276.02
4.3.70.1470.0176.02
4.3.60.1770.0176.02
4.3.50.1400.0176.02
4.3.40.1830.0276.02
4.3.30.0870.0176.02
4.3.20.0830.0206.02
4.3.10.0830.0206.02
4.3.00.0830.0206.02

preferences:
31.48 ms | 401 KiB | 5 Q