3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cost = 12; $hash = password_hash('miauw woef boe schrik', PASSWORD_BCRYPT, array('cost' => $cost /* 12 */)); echo $hash, PHP_EOL; echo strlen($hash);

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.10.0130.26214.93
7.4.00.0070.26815.05
7.3.130.0100.26514.75
7.3.120.0030.26314.66
7.3.110.0030.25914.73
7.3.100.0020.25314.69
7.3.90.0080.24214.73
7.3.80.0070.25114.89
7.3.70.0030.25214.76
7.3.60.0050.24914.63
7.3.50.0030.24714.62
7.3.40.0080.24714.86
7.3.30.0050.25014.69
7.3.20.0070.24516.62
7.3.10.0080.24116.61
7.3.00.0080.25216.43
7.2.260.0130.26114.66
7.2.250.0030.26015.12
7.2.240.0100.24615.01
7.2.230.0020.25615.03
7.2.220.0030.24914.97
7.2.210.0080.24314.94
7.2.200.0080.25614.91
7.2.190.0030.24814.86
7.2.180.0020.25114.80
7.2.170.0050.25614.96
7.2.160.0050.24515.02
7.2.150.0030.25016.76
7.2.140.0070.24116.69
7.2.130.0050.25416.80
7.2.120.0080.23816.76
7.2.110.0070.24716.88
7.2.100.0070.25216.84
7.2.90.0070.25216.86
7.2.80.0050.24516.89
7.2.70.0050.25216.95
7.2.60.0120.23716.96
7.2.50.0130.24716.86
7.2.40.0070.24416.86
7.2.30.0030.24316.82
7.2.20.0030.25516.84
7.2.10.0070.25116.74
7.2.00.0070.25617.40
7.1.330.0030.25415.60
7.1.320.0030.25415.65
7.1.310.0080.24715.65
7.1.300.0030.24915.78
7.1.290.0070.24615.79
7.1.280.0030.25215.69
7.1.270.0000.25415.78
7.1.260.0050.25015.58
7.1.250.0030.25615.75
7.1.240.0030.23815.72
7.1.230.0130.25215.80
7.1.220.0070.24815.74
7.1.210.0000.24715.61
7.1.200.0030.25215.57
7.1.190.0100.24015.62
7.1.180.0030.24915.69
7.1.170.0030.24215.75
7.1.160.0000.24915.83
7.1.150.0070.23715.81
7.1.140.0030.24915.84
7.1.130.0030.24815.81
7.1.120.0030.23815.61
7.1.110.0070.23915.57
7.1.100.0000.26415.96
7.1.90.0070.25015.78
7.1.80.0070.24115.83
7.1.70.0070.24616.38
7.1.60.0070.25316.34
7.1.50.0070.26716.35
7.1.40.0030.24215.76
7.1.30.0100.24415.93
7.1.20.0070.24515.59
7.1.10.0070.24315.54
7.1.00.0000.26119.02
7.0.330.0070.24615.35
7.0.320.0030.24315.37
7.0.310.0070.24815.45
7.0.300.0100.24015.36
7.0.290.0070.24815.48
7.0.280.0070.24415.21
7.0.270.0070.24515.61
7.0.260.0030.25115.44
7.0.250.0030.24615.44
7.0.240.0000.25615.30
7.0.230.0000.25715.56
7.0.220.0070.24415.54
7.0.210.0000.25415.45
7.0.200.0070.25216.19
7.0.190.0070.24015.54
7.0.180.0070.24215.62
7.0.170.0000.26015.29
7.0.160.0030.24315.49
7.0.150.0000.25315.60
7.0.140.0020.28918.69
7.0.130.0030.24315.58
7.0.120.0070.24015.68
7.0.110.0100.24015.63
7.0.100.0030.24115.40
7.0.90.0070.23715.53
7.0.80.0070.24115.43
7.0.70.0030.25015.55
7.0.60.0220.29117.58
7.0.50.0050.27216.59
7.0.40.0030.26515.62
7.0.30.0270.26215.55
7.0.20.0080.29315.70
7.0.10.0050.28515.48
7.0.00.0100.29815.57
5.6.400.0070.27314.16
5.6.390.0030.25113.95
5.6.380.0030.25514.16
5.6.370.0030.24714.24
5.6.360.0070.25014.10
5.6.350.0000.24714.43
5.6.340.0030.24614.25
5.6.330.0070.24414.33
5.6.320.0070.24914.24
5.6.310.0030.24114.45
5.6.300.0030.24414.16
5.6.290.0030.25114.48
5.6.280.0070.29317.52
5.6.270.0000.24614.49
5.6.260.0000.25314.52
5.6.250.0100.24514.04
5.6.240.0100.24413.95
5.6.230.0100.24114.03
5.6.220.0000.24214.48
5.6.210.0080.30217.39
5.6.200.0100.28916.16
5.6.190.0050.30216.24
5.6.180.0080.29816.35
5.6.170.0070.29816.28
5.6.160.0070.30216.20
5.6.150.0050.30016.20
5.6.140.0050.27816.30
5.6.130.0030.29316.23
5.6.120.0070.26616.23
5.6.110.0020.29516.23
5.6.100.0130.26916.29
5.6.90.0030.28316.12
5.6.80.0030.28215.95
5.6.70.0070.26615.76
5.6.60.0070.28915.94
5.6.50.0120.27815.89
5.6.40.0030.30015.99
5.6.30.0020.28315.69
5.6.20.0100.26215.85
5.6.10.0050.26115.96
5.6.00.0100.27115.72
5.5.380.0030.24814.14
5.5.370.0030.25514.01
5.5.360.0070.23814.49
5.5.350.0100.26917.18
5.5.340.0070.29416.15
5.5.330.0030.26616.19
5.5.320.0030.26516.11
5.5.310.0030.30116.19
5.5.300.0020.28716.19
5.5.290.0050.26516.22
5.5.280.0050.26615.91
5.5.270.0050.31216.08
5.5.260.0050.28516.05
5.5.250.0070.29915.88
5.5.240.0070.27315.82
5.5.230.0030.28915.74
5.5.220.0030.26615.60
5.5.210.0070.28715.77
5.5.200.0070.29815.67
5.5.190.0050.29315.75
5.5.180.0050.29915.83
5.5.170.0100.24413.93
5.5.160.0120.29515.81
5.5.150.0030.26915.78
5.5.140.0100.29015.79
5.5.130.0100.29715.86
5.5.120.0020.26715.53
5.5.110.0030.27715.76
5.5.100.0070.26115.75
5.5.90.0080.29015.59
5.5.80.0020.27415.45
5.5.70.0080.28415.68
5.5.60.0100.28515.54
5.5.50.0030.30315.63
5.5.40.0080.28015.56
5.5.30.0070.25915.58
5.5.20.0070.26515.69
5.5.10.0050.29415.71
5.5.00.0070.29215.43
5.4.450.0070.03719.25
5.4.440.0070.04719.30
5.4.430.0070.07019.32
5.4.420.0170.07019.21
5.4.410.0200.05719.23
5.4.400.0030.04318.96
5.4.390.0000.08018.99
5.4.380.0000.08318.96
5.4.370.0130.06318.89
5.4.360.0130.06718.99
5.4.350.0100.07018.97
5.4.340.0000.08719.02
5.4.320.0070.06018.99
5.4.310.0030.06019.13
5.4.300.0030.05319.00
5.4.290.0070.04719.07
5.4.280.0100.07719.07
5.4.270.0030.05019.20
5.4.260.0030.06019.20
5.4.250.0000.08018.98
5.4.240.0070.07319.00
5.4.230.0070.07718.96
5.4.220.0170.06719.12
5.4.210.0030.07718.98
5.4.200.0070.07319.02
5.4.190.0100.07019.02
5.4.180.0170.07018.92
5.4.170.0000.07719.08
5.4.160.0200.05018.96
5.4.150.0030.04018.97
5.4.140.0130.06716.25
5.4.130.0100.06316.13
5.4.120.0100.05716.41
5.4.110.0070.06316.39
5.4.100.0000.08316.41
5.4.90.0100.05716.36
5.4.80.0070.04316.31
5.4.70.0000.06016.28
5.4.60.0000.04316.40
5.4.50.0000.05016.26
5.4.40.0070.07316.29
5.4.30.0030.07316.25
5.4.20.0100.06716.32
5.4.10.0070.06016.39
5.4.00.0030.05315.71
5.3.290.0030.08314.44
5.3.280.0070.03714.56
5.3.270.0070.07714.56
5.3.260.0030.06314.59
5.3.250.0070.04314.54
5.3.240.0000.06014.43
5.3.230.0070.07314.41
5.3.220.0000.05014.52
5.3.210.0070.05714.55
5.3.200.0100.05314.49
5.3.190.0070.07714.54
5.3.180.0030.07714.51
5.3.170.0100.07314.52
5.3.160.0100.04014.39
5.3.150.0070.03714.64
5.3.140.0130.06314.41
5.3.130.0200.03714.47
5.3.120.0070.07014.52
5.3.110.0070.04714.34
5.3.100.0030.08014.11
5.3.90.0070.06013.98
5.3.80.0070.06713.95
5.3.70.0100.06713.98
5.3.60.0070.05013.93
5.3.50.0070.07713.88
5.3.40.0030.03713.73
5.3.30.0030.04313.99
5.3.20.0030.04013.62
5.3.10.0000.03713.61
5.3.00.0030.03313.57
5.2.170.0000.05711.29
5.2.160.0000.03011.12
5.2.150.0070.02710.94
5.2.140.0000.05711.18
5.2.130.0000.03011.08
5.2.120.0000.03711.02
5.2.110.0000.03010.93
5.2.100.0030.02711.07
5.2.90.0000.03011.04
5.2.80.0030.02710.86
5.2.70.0030.02711.23
5.2.60.0000.03010.87
5.2.50.0030.02710.84
5.2.40.0030.02710.93
5.2.30.0000.03010.79
5.2.20.0000.03010.93
5.2.10.0030.02710.89
5.2.00.0000.03310.72
5.1.60.0070.02010.14
5.1.50.0030.02310.14
5.1.40.0070.02010.11
5.1.30.0000.04310.32
5.1.20.0030.02710.38
5.1.10.0030.02310.05
5.1.00.0030.02310.11
5.0.50.0000.0208.56
5.0.40.0070.0138.45
5.0.30.0000.0308.25
5.0.20.0030.0178.18
5.0.10.0030.0178.36
5.0.00.0030.0278.20
4.4.90.0000.0177.80
4.4.80.0000.0177.80
4.4.70.0030.0137.80
4.4.60.0000.0177.80
4.4.50.0000.0177.80
4.4.40.0000.0237.80
4.4.30.0070.0107.80
4.4.20.0000.0177.80
4.4.10.0030.0137.80
4.4.00.0000.0277.80
4.3.110.0030.0137.80
4.3.100.0000.0137.80
4.3.90.0000.0137.80
4.3.80.0070.0207.80
4.3.70.0000.0177.80
4.3.60.0000.0137.80
4.3.50.0000.0177.80
4.3.40.0030.0237.80
4.3.30.0000.0137.80
4.3.20.0000.0177.80
4.3.10.0000.0137.80
4.3.00.0000.0137.80

preferences:
31.93 ms | 401 KiB | 5 Q