3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash[] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash[] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash_info[] = password_get_info($hash[0]); $hash_info[] = password_get_info($hash[1]); var_dump($hash,$hash_info);

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.3.120.0060.07814.77
7.3.110.0030.08514.87
7.3.100.0030.07615.02
7.3.90.0030.08314.77
7.3.80.0030.07614.95
7.3.70.0000.08514.73
7.3.60.0130.07214.84
7.3.50.0000.08714.75
7.3.40.0100.07414.70
7.3.30.0100.07214.78
7.3.20.0030.07916.79
7.3.10.0120.07316.52
7.3.00.0070.07516.36
7.2.240.0100.07115.09
7.2.230.0030.08014.79
7.2.220.0070.08014.73
7.2.210.0130.07214.79
7.2.200.0000.08014.82
7.2.190.0070.07914.97
7.2.180.0000.08614.63
7.2.170.0100.07314.88
7.2.160.0030.08014.83
7.2.150.0070.08016.88
7.2.140.0060.07816.86
7.2.130.0050.07716.73
7.2.120.0070.07616.70
7.2.110.0070.07516.65
7.2.100.0090.07516.54
7.2.90.0110.07716.67
7.2.80.0080.08016.73
7.2.70.0100.07716.71
7.2.60.0060.08116.61
7.2.50.0070.08116.65
7.2.40.0060.08216.64
7.2.30.0080.07616.56
7.2.20.0080.07716.58
7.2.10.0080.07716.57
7.2.00.0060.08216.82
7.1.330.0030.08115.85
7.1.320.0070.07915.54
7.1.310.0070.07615.57
7.1.300.0030.07815.59
7.1.290.0000.08015.80
7.1.280.0030.07815.67
7.1.270.0000.08316.02
7.1.260.0070.07515.71
7.1.250.0080.07215.62
7.1.240.0070.07615.60
7.1.230.0030.08315.82
7.1.220.0130.06915.80
7.1.210.0130.07115.53
7.1.200.0070.07615.65
7.1.190.0000.08415.83
7.1.180.0100.07415.61
7.1.170.0070.07615.81
7.1.160.0030.08315.75
7.1.150.0030.07615.52
7.1.140.0070.07515.73
7.1.130.0070.07715.45
7.1.120.0070.07515.84
7.1.110.0030.07515.79
7.1.100.0020.08116.93
7.1.90.0070.07615.84
7.1.80.0000.07815.88
7.1.70.0020.07916.47
7.1.60.0100.10217.60
7.1.50.0100.09116.32
7.1.40.0030.07715.87
7.1.30.0030.07515.90
7.1.20.0070.07615.76
7.1.10.0000.08215.86
7.1.00.0070.08318.94
7.0.330.0000.08115.40
7.0.320.0100.07115.62
7.0.310.0030.07715.34
7.0.300.0030.08115.54
7.0.290.0060.07415.20
7.0.280.0000.08115.38
7.0.270.0000.08715.47
7.0.260.0030.07915.48
7.0.250.0100.07215.27
7.0.240.0030.07815.37
7.0.230.0030.07715.37
7.0.220.0000.07915.28
7.0.210.0070.07615.33
7.0.200.0070.07516.07
7.0.190.0030.07915.38
7.0.180.0130.07115.44
7.0.170.0070.07015.37
7.0.160.0030.08215.39
7.0.150.0100.08215.39
7.0.140.0050.12818.72
7.0.130.0070.08315.40
7.0.120.0070.07615.47
7.0.110.0100.08115.37
7.0.100.0070.09015.35
7.0.90.0030.08115.35
7.0.80.0070.07615.35
7.0.70.0030.10118.57
7.0.60.0070.10118.54
7.0.50.0030.08718.81
7.0.40.0030.08516.69
7.0.30.0020.08616.85
7.0.20.0050.09216.78
7.0.10.0080.08316.89
7.0.00.0030.12816.66
5.6.380.0100.07014.69
5.6.370.0030.08214.70
5.6.360.0100.07014.59
5.6.350.0060.07814.00
5.6.340.0030.07514.21
5.6.330.0070.07614.57
5.6.320.0030.07814.16
5.6.310.0030.07614.21
5.6.300.0070.07514.14
5.6.290.0070.07514.61
5.6.280.0020.12417.61
5.6.270.0070.08814.34
5.6.260.0100.08114.41
5.6.250.0030.08614.12
5.6.240.0060.07814.44
5.6.230.0130.08114.25
5.6.220.0070.08617.32
5.6.210.0080.09617.37
5.6.200.0030.09617.61
5.6.190.0030.08617.74
5.6.180.0100.08317.74
5.6.170.0050.08517.60
5.6.160.0100.08417.62
5.6.150.0080.12017.64
5.6.140.0140.10217.72
5.6.130.0130.11617.72
5.6.120.0020.13117.62
5.6.110.0050.12317.64
5.6.100.0050.09317.60
5.6.90.0070.10217.57
5.6.80.0050.12317.16
5.6.70.0070.12117.32
5.6.60.0100.11317.32
5.6.50.0080.11717.39
5.6.40.0130.11417.41
5.6.30.0130.11917.24
5.6.20.0100.12317.20
5.6.10.0030.11917.38
5.6.00.0070.10417.46
5.5.380.0030.07511.20
5.5.370.0000.07811.47
5.5.360.0050.10315.63
5.5.350.0030.08415.82
5.5.340.0030.08416.08
5.5.330.0020.08316.13
5.5.320.0020.08315.99
5.5.310.0050.08116.03
5.5.300.0030.10916.03
5.5.290.0000.10715.81
5.5.280.0070.12416.08
5.5.270.0050.12215.93
5.5.260.0080.09715.94
5.5.250.0030.12116.01
5.5.240.0050.11415.77
5.5.230.0030.12315.67
5.5.220.0050.12415.71
5.5.210.0050.11915.58
5.5.200.0100.11315.69
5.5.190.0070.11815.62
5.5.180.0020.09615.66
5.5.170.0070.07410.96
5.5.160.0050.12115.66
5.5.150.0060.11715.70
5.5.140.0020.11315.64
5.5.130.0070.09915.57
5.5.120.0020.12215.69
5.5.110.0020.10415.62
5.5.100.0080.11415.44
5.5.90.0020.12515.58
5.5.80.0030.11915.47
5.5.70.0000.12915.63
5.5.60.0070.11315.54
5.5.50.0000.11415.56
5.5.40.0070.11515.62
5.5.30.0050.12015.61
5.5.20.0100.10715.58
5.5.10.0050.12215.53
5.5.00.0000.11915.58
5.4.450.0050.03815.18
5.4.440.0070.03015.14
5.4.430.0100.03815.17
5.4.420.0050.04515.12
5.4.410.0030.03515.14
5.4.400.0060.03515.00
5.4.390.0030.03914.89
5.4.380.0050.03714.96
5.4.370.0040.04115.02
5.4.360.0050.03715.04
5.4.350.0030.04114.91
5.4.340.0080.03714.91
5.4.330.0030.00610.76
5.4.320.0030.04314.77
5.4.310.0030.04114.86
5.4.300.0000.04015.04
5.4.290.0040.03215.09
5.4.280.0020.04715.04
5.4.270.0030.04214.84
5.4.260.0070.04014.97
5.4.250.0120.03314.97
5.4.240.0040.03214.91
5.4.230.0040.04014.98
5.4.220.0090.03814.83
5.4.210.0050.04014.92
5.4.200.0080.04314.94
5.4.190.0050.03814.87
5.4.180.0050.03514.94
5.4.170.0080.03514.82
5.4.160.0030.03514.84
5.4.150.0000.04715.01
5.4.140.0050.03513.52
5.4.130.0030.03613.59
5.4.120.0040.03713.46
5.4.110.0020.04213.60
5.4.100.0060.03713.46
5.4.90.0050.03613.54
5.4.80.0020.03413.61
5.4.70.0050.03913.45
5.4.60.0030.03613.58
5.4.50.0050.02313.60
5.4.40.0070.04013.50
5.4.30.0050.03813.66
5.4.20.0050.02513.61
5.4.10.0050.03213.63
5.4.00.0060.03613.22
5.3.290.0050.04112.35
5.3.280.0070.02312.31
5.3.270.0050.04112.39
5.3.260.0030.03312.29
5.3.250.0030.03912.36
5.3.240.0040.03512.22
5.3.230.0050.03712.23
5.3.220.0020.04112.34
5.3.210.0030.04312.35
5.3.200.0050.03612.21
5.3.190.0020.03812.24
5.3.180.0000.04312.49
5.3.170.0070.03712.33
5.3.160.0060.03012.30
5.3.150.0030.03412.36
5.3.140.0040.04012.38
5.3.130.0020.04712.37
5.3.120.0050.03812.37
5.3.110.0000.03712.35
5.3.100.0070.03612.05
5.3.90.0050.04212.18
5.3.80.0020.04212.01
5.3.70.0020.04112.00
5.3.60.0040.03012.09
5.3.50.0040.02912.01
5.3.40.0090.02812.01
5.3.30.0040.03711.94
5.3.20.0070.03011.84
5.3.10.0020.03411.71
5.3.00.0040.03711.56
5.2.170.0010.03010.10
5.2.160.0070.03010.13
5.2.150.0000.03310.23
5.2.140.0020.03010.03
5.2.130.0020.03010.08
5.2.120.0060.03010.05
5.2.110.0060.02510.15
5.2.100.0030.03410.18
5.2.90.0070.03010.16
5.2.80.0030.0359.96
5.2.70.0030.03210.11
5.2.60.0080.03210.10
5.2.50.0050.03310.15
5.2.40.0060.02510.19
5.2.30.0020.03110.09
5.2.20.0030.03210.04
5.2.10.0020.02710.05
5.2.00.0030.03310.01
5.1.60.0040.0279.64
5.1.50.0090.0259.54
5.1.40.0050.0179.74
5.1.30.0040.0289.80
5.1.20.0070.0229.74
5.1.10.0020.0279.57
5.1.00.0010.0319.59
5.0.50.0050.0179.48
5.0.40.0030.0199.48
5.0.30.0020.0379.48
5.0.20.0000.0209.48
5.0.10.0020.0239.48
5.0.00.0000.0339.48
4.4.90.0020.0189.48
4.4.80.0020.0179.48
4.4.70.0030.0209.48
4.4.60.0030.0159.48
4.4.50.0020.0179.48
4.4.40.0020.0199.48
4.4.30.0050.0159.48
4.4.20.0020.0139.48
4.4.10.0040.0179.48
4.4.00.0010.0289.48
4.3.110.0000.0239.48
4.3.100.0020.0139.48
4.3.90.0030.0119.48
4.3.80.0050.0239.48
4.3.70.0020.0159.48
4.3.60.0050.0159.48
4.3.50.0020.0209.48
4.3.40.0020.0259.48
4.3.30.0030.0189.48
4.3.20.0020.0189.48
4.3.10.0000.0219.48
4.3.00.0000.0209.48

preferences:
33.21 ms | 401 KiB | 5 Q