3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Madara is Awesome!"; $hash = password_hash($password, PASSWORD_BCRYPT, ["salt" => "w2INsrMdssaCaadaB2rehe"]); //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.13314.76
7.3.120.0070.14014.68
7.3.110.0070.13514.75
7.3.100.0070.13815.00
7.3.90.0070.12814.67
7.3.80.0070.13214.74
7.3.70.0100.12114.86
7.3.60.0030.12914.75
7.3.50.0070.12814.55
7.3.40.0030.13314.52
7.3.30.0030.13014.81
7.3.20.0030.12916.65
7.3.10.0070.13116.23
7.3.00.0060.13216.47
7.2.250.0030.14214.80
7.2.240.0070.13314.64
7.2.230.0030.13714.91
7.2.220.0000.13914.90
7.2.210.0030.13214.91
7.2.200.0030.12714.82
7.2.190.0030.13414.68
7.2.180.0070.12614.90
7.2.170.0000.13514.97
7.2.130.0080.13016.37
7.2.120.0070.13116.54
7.2.110.0050.13216.60
7.2.100.0070.13216.70
7.2.90.0090.13216.66
7.2.80.0070.13116.74
7.2.70.0120.12916.58
7.2.60.0070.13316.79
7.2.50.0110.13116.74
7.2.40.0120.13316.79
7.2.30.0100.13216.62
7.2.20.0100.13716.84
7.2.10.0070.13016.68
7.2.00.0110.12917.46
7.1.330.0030.13015.59
7.1.320.0030.13015.52
7.1.310.0070.12715.84
7.1.300.0000.13515.38
7.1.290.0100.12515.27
7.1.280.0070.12815.47
7.1.270.0000.13815.49
7.1.260.0100.13115.71
7.1.250.0050.13415.65
7.1.200.0100.12815.84
7.1.100.0030.13218.11
7.1.70.0030.14417.11
7.1.60.0100.20019.17
7.1.50.0030.14416.80
7.1.00.0030.21022.45
7.0.200.1000.13016.69
7.0.140.0070.22321.96
7.0.60.0030.17320.02
7.0.50.0070.22317.86
7.0.40.0070.20320.30
7.0.30.0300.20020.30
7.0.20.0200.19020.30
7.0.10.0100.23020.13
7.0.00.0100.16320.06
5.6.280.0030.23721.05
5.6.210.0000.22720.47
5.6.200.0030.16318.27
5.6.190.0030.17720.27
5.6.180.0470.16320.75
5.6.170.0230.22320.39
5.6.160.0100.22720.39
5.6.150.0070.22318.11
5.6.140.0070.17018.18
5.6.130.0370.19318.21
5.6.120.0170.22320.99
5.6.110.0100.15321.02
5.6.100.0100.17021.13
5.6.90.0200.21721.03
5.6.80.0070.18320.35
5.5.350.4330.16020.29
5.5.340.0030.16317.94
5.5.330.0100.21320.18
5.5.320.0030.24020.51
5.5.310.0300.18320.35
5.5.300.0030.16317.97
5.5.290.0100.20017.95
5.5.280.0070.23320.84
5.5.270.0070.24020.78
5.5.260.0070.22020.76
5.5.250.0000.21020.57
5.5.240.0070.13320.11
5.4.450.0270.04019.25
5.4.440.0270.04319.54
5.4.430.0200.04319.42
5.4.420.0070.05019.23
5.4.410.0300.06318.98
5.4.400.0300.05319.25
5.4.390.0300.06719.09
5.4.380.0230.07718.79
5.4.370.0300.06719.22
5.4.360.0270.04319.08
5.4.350.0300.05319.22
5.4.340.0270.06319.13
5.4.320.0200.04019.08
5.4.310.0230.07718.88
5.4.300.0300.07019.13
5.4.290.0200.04719.11
5.4.280.0330.07718.81
5.4.270.0230.05019.15
5.4.260.0230.04018.91
5.4.250.0300.04719.23
5.4.240.0300.06718.93
5.4.230.0230.04319.15
5.4.220.0270.03718.91
5.4.210.0370.06719.10
5.4.200.0300.06319.13
5.4.190.0230.06019.06
5.4.180.0200.04018.87
5.4.170.0200.03719.13
5.4.160.0200.06019.05
5.4.150.0130.04319.05
5.4.140.0170.03716.45
5.4.130.0230.03316.15
5.4.120.0200.04316.22
5.4.110.0170.04316.39
5.4.100.0130.04316.41
5.4.90.0230.03316.38
5.4.80.0200.03316.37
5.4.70.0170.04316.44
5.4.60.0230.03016.28
5.4.50.0170.03316.31
5.4.40.0230.03716.36
5.4.30.0200.05016.31
5.4.20.0200.03316.36
5.4.10.0270.03316.36
5.4.00.0170.04015.88
5.3.290.0230.03714.57
5.3.280.0300.04714.68
5.3.270.0230.03314.46
5.3.260.0200.03714.49
5.3.250.0130.04014.43
5.3.240.0170.04014.55
5.3.230.0230.06314.39
5.3.220.0200.03714.51
5.3.210.0200.04314.40
5.3.200.0200.03714.49
5.3.190.0300.06314.40
5.3.180.0130.04314.41
5.3.170.0200.03714.51
5.3.160.0130.04014.40
5.3.150.0100.04314.52
5.3.140.0230.03714.43
5.3.130.0130.04314.40
5.3.120.0270.05314.50
5.3.110.0170.03714.58
5.3.100.0170.07013.99
5.3.90.0270.05013.86
5.3.80.0270.05313.81
5.3.70.0230.04314.12
5.3.60.0200.07013.95
5.3.50.0270.06713.90
5.3.40.0230.04313.93
5.3.30.0300.03313.86
5.3.20.0300.02713.54
5.3.10.0230.03713.61
5.3.00.0230.03313.48
5.2.170.0230.04310.98
5.2.160.0200.03011.03
5.2.150.0130.03010.99
5.2.140.0200.02711.16
5.2.130.0230.03010.95
5.2.120.0330.05011.15
5.2.110.0230.04011.14
5.2.100.0270.02311.04
5.2.90.0200.03711.04
5.2.80.0170.03311.00
5.2.70.0200.03010.94
5.2.60.0100.03711.09
5.2.50.0200.04310.91
5.2.40.0230.03311.06
5.2.30.0170.05010.88
5.2.20.0230.04010.82
5.2.10.0200.03010.82
5.2.00.0200.03010.63
5.1.60.0170.0539.97
5.1.50.0200.0439.88
5.1.40.0230.04010.06
5.1.30.0170.05010.20
5.1.20.0130.03310.27
5.1.10.0200.05310.15
5.1.00.0230.03310.00
5.0.50.0030.0208.59
5.0.40.0000.0238.57
5.0.30.0100.0308.16
5.0.20.0100.0438.18
5.0.10.0100.0308.05
5.0.00.0130.0638.05
4.4.90.0070.0177.45
4.4.80.0070.0177.45
4.4.70.0030.0237.45
4.4.60.0070.0307.45
4.4.50.0070.0207.45
4.4.40.0130.0207.45
4.4.30.0100.0237.45
4.4.20.0170.0077.45
4.4.10.0000.0207.45
4.4.00.0100.0437.45
4.3.110.0030.0207.45
4.3.100.0100.0337.45
4.3.90.0070.0307.45
4.3.80.0100.0277.45
4.3.70.0130.0337.45
4.3.60.0130.0177.45
4.3.50.0070.0377.45
4.3.40.0100.0377.45
4.3.30.0030.0377.45
4.3.20.0030.0407.45
4.3.10.0030.0237.45
4.3.00.0070.0207.45

preferences:
35.23 ms | 401 KiB | 5 Q