3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 'password'; $s = 'abcdefghijklmnopqrstuvwxyz012345'; print password_hash($p, PASSWORD_BCRYPT, array('salt' => $s, 'cost' => 7));

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.0090.01816.94
7.2.00.0070.01719.43
7.1.200.0070.01415.81
7.1.100.0150.01017.94
7.1.70.0000.01517.19
7.1.60.0030.03919.82
7.1.50.0060.01516.64
7.1.00.0070.08722.36
7.0.200.0130.01016.36
7.0.140.0070.08722.08
7.0.60.0230.09319.97
7.0.50.0070.06317.86
7.0.40.0030.09720.02
7.0.30.0300.08720.13
7.0.20.0330.09720.07
7.0.10.0100.05320.16
7.0.00.0100.08720.17
5.6.280.0030.08721.06
5.6.210.0070.04320.68
5.6.200.0070.06718.16
5.6.190.0000.08020.41
5.6.180.0470.04720.39
5.6.170.0170.05720.46
5.6.160.0070.08720.48
5.6.150.0000.09718.12
5.6.140.0070.04318.14
5.6.130.0100.06318.18
5.6.120.0070.08020.96
5.6.110.0100.09721.11
5.6.100.0100.09021.00
5.6.90.0070.07721.07
5.6.80.0100.08720.40
5.5.350.0030.09320.39
5.5.340.0000.09717.92
5.5.330.0030.04720.21
5.5.320.0370.08320.34
5.5.310.0170.06320.35
5.5.300.0070.08317.96
5.5.290.0070.06317.95
5.5.280.0030.05020.86
5.5.270.0130.09720.76
5.5.260.0000.09720.79
5.5.250.0030.09320.65
5.5.240.0030.08720.06
5.4.450.0270.03719.21
5.4.440.0300.07019.26
5.4.430.0230.04019.41
5.4.420.0230.04019.21
5.4.410.0200.08019.26
5.4.400.0330.07019.27
5.4.390.0300.06319.13
5.4.380.0330.03018.87
5.4.370.0330.07018.97
5.4.360.0270.05719.01
5.4.350.0330.04019.04
5.4.340.0230.04319.16
5.4.320.0300.06719.26
5.4.310.0330.06019.00
5.4.300.0370.05319.16
5.4.290.0330.06719.04
5.4.280.0300.05019.16
5.4.270.0300.06719.04
5.4.260.0270.07319.08
5.4.250.0300.07019.03
5.4.240.0270.05319.04
5.4.230.0130.04019.16
5.4.220.0130.04319.15
5.4.210.0230.03318.86
5.4.200.0270.03318.91
5.4.190.0200.04319.18
5.4.180.0200.03318.88
5.4.170.0330.07019.19
5.4.160.0200.06019.15
5.4.150.0300.07319.04
5.4.140.0230.04016.36
5.4.130.0270.03316.26
5.4.120.0130.04016.24
5.4.110.0230.04316.33
5.4.100.0270.03016.46
5.4.90.0330.03316.46
5.4.80.0170.03716.30
5.4.70.0230.03016.33
5.4.60.0370.02716.20
5.4.50.0200.03316.36
5.4.40.0300.03016.46
5.4.30.0200.03316.23
5.4.20.0200.03316.21
5.4.10.0170.04016.32
5.4.00.0230.03315.57
5.3.290.0300.07314.64
5.3.280.0130.04014.51
5.3.270.0300.03714.53
5.3.260.0170.04314.48
5.3.250.0230.03714.62
5.3.240.0230.03314.53
5.3.230.0230.07014.55
5.3.220.0300.06314.54
5.3.210.0230.03314.52
5.3.200.0200.04014.50
5.3.190.0170.04314.49
5.3.180.0170.04014.47
5.3.170.0230.03314.48
5.3.160.0230.03314.38
5.3.150.0270.02714.50
5.3.140.0170.04014.49
5.3.130.0170.04014.63
5.3.120.0200.03314.36
5.3.110.0170.03714.55
5.3.100.0230.03313.98
5.3.90.0200.03313.96
5.3.80.0170.03713.85
5.3.70.0230.03013.85
5.3.60.0270.02714.02
5.3.50.0130.03713.78
5.3.40.0130.04013.92
5.3.30.0100.04013.72
5.3.20.0230.03313.71
5.3.10.0130.04013.75
5.3.00.0230.06313.42
5.2.170.0200.02311.09
5.2.160.0070.03711.30
5.2.150.0200.02311.09
5.2.140.0130.03711.04
5.2.130.0230.02711.18
5.2.120.0230.04311.07
5.2.110.0270.05311.25
5.2.100.0200.03011.09
5.2.90.0300.02311.07
5.2.80.0230.04311.25
5.2.70.0170.03011.07
5.2.60.0100.05010.94
5.2.50.0230.03311.00
5.2.40.0230.04310.97
5.2.30.0200.05310.87
5.2.20.0100.03310.89
5.2.10.0130.04310.86
5.2.00.0200.03710.75
5.1.60.0270.0339.98
5.1.50.0230.03710.06
5.1.40.0170.02310.03
5.1.30.0200.03010.33
5.1.20.0270.04310.38
5.1.10.0170.05010.04
5.1.00.0170.04710.14
5.0.50.0100.0438.60
5.0.40.0130.0208.47
5.0.30.0130.0578.12
5.0.20.0070.0308.26
5.0.10.0100.0278.13
5.0.00.0100.0378.21
4.4.90.0130.0338.08
4.4.80.0070.0208.08
4.4.70.0130.0308.08
4.4.60.0100.0338.08
4.4.50.0070.0278.08
4.4.40.0100.0438.08
4.4.30.0070.0178.08
4.4.20.0100.0178.08
4.4.10.0100.0178.08
4.4.00.0100.0238.08
4.3.110.0130.0308.08
4.3.100.0170.0238.08
4.3.90.0130.0308.08
4.3.80.0130.0478.08
4.3.70.0100.0338.08
4.3.60.0070.0278.08
4.3.50.0170.0208.08
4.3.40.0230.0178.08
4.3.30.0030.0408.08
4.3.20.0030.0278.08
4.3.10.0070.0378.08
4.3.00.0070.0178.08

preferences:
41.05 ms | 400 KiB | 5 Q