3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash['info'][] = password_get_info($hash['hash'][0]); $hash['info'][] = password_get_info($hash['hash'][1]); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_BCRYPT,$options); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_DEFAULT); $hash['rehash'][] = password_needs_rehash($hash['hash'][1],PASSWORD_DEFAULT); var_dump($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.00.0100.08214.83
7.3.120.0130.07814.88
7.3.110.0070.08414.88
7.3.100.0100.08114.93
7.3.90.0100.07514.64
7.3.80.0030.08014.67
7.3.70.0030.07614.80
7.3.60.0030.07714.89
7.3.50.0070.07214.67
7.3.40.0070.07514.82
7.3.30.0100.07514.92
7.3.20.0070.08016.52
7.3.10.0070.07516.59
7.3.00.0070.07416.63
7.2.250.0000.08515.04
7.2.240.0140.07914.97
7.2.230.0100.07415.04
7.2.220.0030.08014.93
7.2.210.0060.07714.86
7.2.200.0000.08114.96
7.2.190.0100.07715.01
7.2.180.0000.08214.92
7.2.170.0000.08115.02
7.2.130.0030.08016.89
7.2.120.0030.07816.83
7.2.110.0070.07216.66
7.2.100.0100.07516.71
7.2.90.0100.07416.94
7.2.80.0070.07916.82
7.2.70.0000.08016.67
7.2.60.0050.07816.87
7.2.50.0070.07816.98
7.2.40.0070.07916.75
7.2.30.0000.08916.90
7.2.20.0110.08116.88
7.2.10.0130.07616.67
7.2.00.0080.08117.96
7.1.330.0030.07915.69
7.1.320.0070.07515.84
7.1.310.0070.07515.85
7.1.300.0130.07115.97
7.1.290.0030.08415.52
7.1.280.0030.07915.67
7.1.270.0030.07715.52
7.1.260.0030.07715.71
7.1.250.0030.07815.55
7.1.240.0070.07615.68
7.1.230.0030.08215.57
7.1.220.0100.07415.58
7.1.210.0070.07615.46
7.1.200.0050.07715.73
7.1.190.0030.08215.84
7.1.180.0070.08115.70
7.1.170.0070.07815.61
7.1.160.0030.07715.61
7.1.150.0070.08915.71
7.1.140.0100.08015.63
7.1.130.0070.08315.67
7.1.120.0040.09215.86
7.1.110.0130.08315.82
7.1.100.0110.07716.84
7.1.90.0070.08015.76
7.1.80.0200.06915.65
7.1.70.0020.07916.32
7.1.60.0080.10317.54
7.1.50.0030.09916.40
7.1.40.0030.07515.71
7.1.30.0030.07915.76
7.1.20.0100.06815.71
7.1.10.0060.07015.65
7.1.00.0070.12218.99
7.0.330.0100.07115.20
7.0.320.0070.07515.22
7.0.310.0070.07315.25
7.0.300.0070.07114.95
7.0.290.0070.07815.11
7.0.280.0130.07015.29
7.0.270.0070.07915.04
7.0.260.0100.08115.29
7.0.250.0000.08115.46
7.0.240.0000.08115.23
7.0.230.0070.07815.30
7.0.220.0130.07315.43
7.0.210.0000.08415.27
7.0.200.0210.08515.98
7.0.190.0030.08815.23
7.0.180.0100.08215.01
7.0.170.0030.07815.25
7.0.160.0100.07615.13
7.0.150.0130.07814.99
7.0.140.0050.12218.66
7.0.130.0070.07615.09
7.0.120.0070.11818.73
7.0.110.0060.07515.30
7.0.100.0130.07915.26
7.0.90.0000.08015.40
7.0.80.0000.08415.36
7.0.70.0030.07215.34
7.0.60.0030.11917.59
7.0.50.0030.11816.65
7.0.40.0070.11616.74
7.0.30.0120.10216.78
7.0.20.0220.11516.70
7.0.10.0070.12116.78
7.0.00.0050.12816.78
5.6.380.0070.07714.32
5.6.370.0100.08313.99
5.6.360.0070.08414.20
5.6.350.0100.08013.91
5.6.340.0100.07314.03
5.6.330.0100.07313.97
5.6.320.0030.07914.18
5.6.310.0070.08714.28
5.6.300.0070.07214.33
5.6.290.0030.08514.03
5.6.280.0070.12717.59
5.6.270.0030.08814.18
5.6.260.0070.07914.39
5.6.250.0030.08514.09
5.6.240.0130.07813.96
5.6.230.0030.08814.05
5.6.220.0070.08413.98
5.6.210.0070.12217.39
5.6.200.0020.13416.00
5.6.190.0080.13017.24
5.6.180.0170.12517.28
5.6.170.0120.10617.52
5.6.160.0110.12917.58
5.6.150.0120.09916.30
5.6.140.0150.11416.23
5.6.130.0030.10916.19
5.6.120.0030.09717.68
5.6.110.0070.13117.69
5.6.100.0080.10717.61
5.6.90.0100.11717.67
5.6.80.0120.12217.26
5.6.70.0070.07414.00
5.6.60.0100.07514.20
5.6.50.0130.07414.16
5.6.40.0000.07814.29
5.6.30.0000.08514.20
5.6.20.0070.07614.36
5.6.10.0030.08614.21
5.6.00.0000.08314.23
5.5.380.0070.08211.46
5.5.370.0100.07811.14
5.5.360.0030.08211.16
5.5.350.0200.11315.70
5.5.340.0080.09714.47
5.5.330.0030.11515.76
5.5.320.0100.09315.69
5.5.310.0180.10915.75
5.5.300.0080.12114.65
5.5.290.0070.12714.63
5.5.280.0070.12215.79
5.5.270.0080.12415.84
5.5.260.0080.12215.91
5.5.250.0110.08715.99
5.5.240.0080.11915.77
5.5.230.0160.07211.07
5.5.220.0070.07711.04
5.5.210.0030.08410.90
5.5.200.0070.07711.00
5.5.190.0030.08611.21
5.5.180.0100.07211.28
5.5.170.0100.07811.16
5.5.160.0100.07710.96
5.5.150.0030.07911.00
5.5.140.0150.06911.37
5.5.130.0090.07310.90
5.5.120.0090.07611.32
5.5.110.0080.07911.22
5.5.100.0130.07610.90
5.5.90.0030.08311.32
5.5.80.0070.08011.02
5.5.70.0100.07711.34
5.5.60.0000.08011.03
5.5.50.0000.08010.90
5.5.40.0030.08311.07
5.5.30.0070.07210.90
5.5.20.0030.07510.90
5.5.10.0030.07611.09
5.5.00.0000.08410.90
5.4.450.0000.02715.27
5.4.440.0050.02415.24
5.4.430.0110.03315.21
5.4.420.0100.03215.21
5.4.410.0060.03715.09
5.4.400.0030.02415.04
5.4.390.0050.04314.88
5.4.380.0060.02014.91
5.4.370.0030.02315.09
5.4.360.0080.02114.99
5.4.350.0030.01915.03
5.4.340.0060.02014.84
5.4.330.0080.00310.95
5.4.320.0060.02015.00
5.4.310.0060.02114.95
5.4.300.0000.02315.04
5.4.290.0050.01814.84
5.4.280.0050.02414.96
5.4.270.0030.02214.84
5.4.260.0030.02214.99
5.4.250.0050.01814.86
5.4.240.0040.02215.04
5.4.230.0020.02115.04
5.4.220.0040.02415.03
5.4.210.0040.02014.84
5.4.200.0030.02314.98
5.4.190.0030.02515.02
5.4.180.0070.04214.95
5.4.170.0090.02214.99
5.4.160.0050.03614.90
5.4.150.0060.03114.84
5.4.140.0050.02813.59
5.4.130.0080.03813.57
5.4.120.0080.02913.58
5.4.110.0030.04213.63
5.4.100.0050.03813.53
5.4.90.0030.03313.65
5.4.80.0020.02513.64
5.4.70.0000.04113.62
5.4.60.0040.03113.58
5.4.50.0050.02613.56
5.4.40.0100.03513.62
5.4.30.0060.02913.60
5.4.20.0070.03713.60
5.4.10.0050.04113.74
5.4.00.0060.04013.30
5.3.290.0080.01912.74
5.3.280.0070.01712.71
5.3.270.0050.04012.76
5.3.260.0080.03512.72
5.3.250.0100.03612.79
5.3.240.0110.03312.72
5.3.230.0080.02712.70
5.3.220.0080.03512.68
5.3.210.0090.03712.68
5.3.200.0050.02512.78
5.3.190.0020.02312.70
5.3.180.0090.02412.69
5.3.170.0080.02312.63
5.3.160.0050.04212.70
5.3.150.0080.03812.69
5.3.140.0030.02612.77
5.3.130.0050.04212.63
5.3.120.0050.02812.73
5.3.110.0050.04012.70
5.3.100.0110.03812.44
5.3.90.0050.03512.48
5.3.80.0050.04112.36
5.3.70.0050.03312.35
5.3.60.0080.03412.41
5.3.50.0050.03512.40
5.3.40.0100.03512.43
5.3.30.0040.03812.31
5.3.20.0080.03712.26
5.3.10.0000.03012.26
5.3.00.0060.03512.18
5.2.170.0040.03710.97
5.2.160.0030.02310.98
5.2.150.0050.03210.99
5.2.140.0030.02210.98
5.2.130.0000.02710.94
5.2.120.0020.03410.99
5.2.110.0110.02710.96
5.2.100.0080.02711.00
5.2.90.0060.03111.00
5.2.80.0030.03310.94
5.2.70.0080.02610.96
5.2.60.0020.02910.96
5.2.50.0080.02510.90
5.2.40.0010.03310.93
5.2.30.0070.03310.94
5.2.20.0050.03610.92
5.2.10.0050.03110.90
5.2.00.0060.02310.80
5.1.60.0000.02710.40
5.1.50.0030.03110.44
5.1.40.0040.03010.44
5.1.30.0070.02510.64
5.1.20.0030.02410.62
5.1.10.0020.02110.49
5.1.00.0100.02510.48
5.0.50.0030.0259.70
5.0.40.0020.0259.65
5.0.30.0000.0299.49
5.0.20.0030.0229.58
5.0.10.0000.0189.53
5.0.00.0000.0369.52
4.4.90.0030.0129.49
4.4.80.0000.0239.49
4.4.70.0050.0159.49
4.4.60.0020.0199.49
4.4.50.0020.0209.49
4.4.40.0050.0259.49
4.4.30.0060.0139.49
4.4.20.0040.0189.49
4.4.10.0010.0129.49
4.4.00.0000.0309.49
4.3.110.0030.0199.49
4.3.100.0020.0109.49
4.3.90.0020.0139.49
4.3.80.0030.0179.49
4.3.70.0030.0109.49
4.3.60.0000.0229.49
4.3.50.0000.0129.49
4.3.40.0050.0139.49
4.3.30.0020.0109.49
4.3.20.0000.0179.49
4.3.10.0020.0219.49
4.3.00.0020.0119.49

preferences:
34.62 ms | 401 KiB | 5 Q