3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_length_bcrypt = '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1'; $max_length_bcrypt_plus_extra = '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1ae3531ac1956aba81cb4f3d4947f9ca99794132989789acb13655645'; var_dump($max_length_bcrypt, $max_length_bcrypt_plus_extra); $hash_options = [ 'salt' => '31c990a8b44218cc483712', // some awful salt 'cost' => 3, // Let's not abuse this wonderful web service (3v4l.org) ]; $hash_1 = password_hash($max_length_bcrypt, PASSWORD_BCRYPT, $hash_options); $hash_2 = password_hash($max_length_bcrypt_plus_extra, PASSWORD_BCRYPT, $hash_options); var_dump($hash_1, $hash_2); var_dump($hash_1 === $hash_2);

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.0100.00814.94
7.4.00.0090.00914.83
7.3.130.0040.01314.83
7.3.120.0110.00514.70
7.3.110.0070.01014.68
7.3.100.0070.00714.85
7.3.90.0050.01014.71
7.3.80.0060.00514.73
7.3.70.0030.01014.75
7.3.60.0090.00414.64
7.3.50.0060.00814.69
7.3.40.0020.00814.74
7.3.30.0050.00714.63
7.3.20.0080.00516.71
7.3.10.0040.00916.55
7.3.00.0060.00816.57
7.2.260.0110.00514.79
7.2.250.0070.01115.01
7.2.240.0050.00814.75
7.2.230.0050.00914.83
7.2.220.0090.00814.85
7.2.210.0040.00914.81
7.2.200.0020.01314.79
7.2.190.0050.01114.74
7.2.180.0090.00714.87
7.2.170.0070.00814.98
7.2.160.0050.00814.80
7.2.150.0030.01116.76
7.2.140.0070.00516.76
7.2.130.0040.00916.74
7.2.120.0040.00816.78
7.2.110.0090.00516.67
7.2.100.0070.00816.80
7.2.90.0050.00716.83
7.2.80.0050.00816.71
7.2.70.0060.00716.85
7.2.60.0040.00916.85
7.2.50.0070.00616.94
7.2.40.0060.00816.76
7.2.30.0040.01116.74
7.2.20.0050.00616.80
7.2.10.0060.00816.82
7.2.00.0040.00817.31
7.1.330.0040.00815.80
7.1.320.0090.00815.65
7.1.310.0060.00915.84
7.1.300.0060.00515.67
7.1.290.0020.00915.83
7.1.280.0030.00615.61
7.1.270.0080.00515.71
7.1.260.0030.00615.73
7.1.250.0050.00815.72
7.1.240.0090.00515.75
7.1.230.0060.00915.68
7.1.220.0050.00515.88
7.1.210.0060.00815.65
7.1.200.0070.00815.79
7.1.190.0020.01215.82
7.1.180.0050.00715.69
7.1.170.0050.00915.79
7.1.160.0060.00615.69
7.1.150.0080.00215.76
7.1.140.0040.01015.85
7.1.130.0050.00815.71
7.1.120.0020.01215.58
7.1.110.0100.00315.85
7.1.100.0100.00516.63
7.1.90.0070.00515.78
7.1.80.0070.00815.73
7.1.70.0060.00616.30
7.1.60.0090.00717.02
7.1.50.0080.01016.01
7.1.40.0100.00515.75
7.1.30.0060.00715.62
7.1.20.0050.00915.68
7.1.10.0040.00615.73
7.1.00.0050.03417.97
7.0.330.0040.00715.46
7.0.320.0110.00315.25
7.0.310.0050.00615.21
7.0.300.0060.00415.19
7.0.290.0080.00615.31
7.0.280.0070.00715.23
7.0.270.0050.00715.34
7.0.260.0080.00815.36
7.0.250.0050.00815.52
7.0.240.0040.00615.23
7.0.230.0040.00915.28
7.0.220.0060.00815.30
7.0.210.0020.01015.24
7.0.200.0060.00715.14
7.0.190.0090.00815.25
7.0.180.0010.00815.35
7.0.170.0000.01215.52
7.0.160.0050.00915.43
7.0.150.0040.00815.43
7.0.140.0070.02917.54
7.0.130.0050.00615.20
7.0.120.0060.00715.39
7.0.110.0050.00915.46
7.0.100.0070.00515.26
7.0.90.0050.00715.21
7.0.80.0090.00615.24
7.0.70.0030.01015.18
7.0.60.0080.02916.91
7.0.50.0040.03016.23
7.0.40.0010.02415.50
7.0.30.0120.02215.58
7.0.20.0140.03115.62
7.0.10.0060.03415.58
7.0.00.0010.02315.66
5.6.400.0080.00614.04
5.6.390.0070.00714.16
5.6.380.0060.00814.09
5.6.370.0060.00814.07
5.6.360.0070.00714.23
5.6.350.0040.01114.43
5.6.340.0050.00814.29
5.6.330.0060.00814.22
5.6.320.0100.00414.46
5.6.310.0000.01214.52
5.6.300.0050.00914.12
5.6.290.0060.00914.39
5.6.280.0080.02616.45
5.6.270.0070.00714.24
5.6.260.0060.00814.45
5.6.250.0040.00914.32
5.6.240.0040.00714.18
5.6.230.0030.01114.41
5.6.220.0010.01114.45
5.6.210.0010.03016.46
5.6.200.0080.02515.55
5.6.190.0060.01716.23
5.6.180.0070.03316.28
5.6.170.0120.02616.36
5.6.160.0040.03516.26
5.6.150.0080.03215.42
5.6.140.0040.03115.49
5.6.130.0030.03615.61
5.6.120.0040.03516.40
5.6.110.0070.03316.51
5.6.100.0110.03016.42
5.6.90.0030.02916.39
5.6.80.0080.02716.37
5.6.70.0070.00714.22
5.6.60.0080.00714.12
5.6.50.0090.00414.09
5.6.40.0020.00614.13
5.6.30.0040.00914.13
5.6.20.0060.00814.02
5.6.10.0040.01113.94
5.6.00.0070.00814.11
5.5.380.0090.00514.27
5.5.370.0070.00814.20
5.5.360.0060.01014.16
5.5.350.1440.02416.29
5.5.340.0060.02115.63
5.5.330.0060.01916.35
5.5.320.0180.01316.24
5.5.310.0100.01816.20
5.5.300.0040.02215.38
5.5.290.0060.03315.51
5.5.280.0060.03416.24
5.5.270.0050.02716.41
5.5.260.0090.02116.25
5.5.250.0030.03116.38
5.5.240.0090.01816.13
5.5.230.0050.00714.19
5.5.220.0090.00414.06
5.5.210.0100.00514.01
5.5.200.0040.00714.27
5.5.190.0030.01014.06
5.5.180.0060.00914.20
5.5.170.0090.00413.95
5.5.160.0030.01014.10
5.5.150.0070.00914.20
5.5.140.0040.01114.01
5.5.130.0070.01014.15
5.5.120.0100.00414.10
5.5.110.0080.00814.14
5.5.100.0050.00914.15
5.5.90.0080.00714.15
5.5.80.0130.00114.17
5.5.70.0030.01214.11
5.5.60.0080.00714.20
5.5.50.0060.00514.13
5.5.40.0090.00413.92
5.5.30.0050.00913.96
5.5.20.0030.01114.06
5.5.10.0070.00714.01
5.5.00.0100.00214.31
5.4.450.0310.03113.71
5.4.440.0270.02413.63
5.4.430.0040.02413.81
5.4.420.0040.02613.88
5.4.410.0090.01813.54
5.4.400.0030.02513.54
5.4.390.0080.01913.43
5.4.380.0090.02113.52
5.4.370.0060.01513.38
5.4.360.0090.01313.43
5.4.350.0030.01913.26
5.4.340.0030.02113.37
5.4.330.0040.00910.77
5.4.320.0020.02213.32
5.4.310.0080.01513.32
5.4.300.0050.01813.29
5.4.290.0070.01813.48
5.4.280.0080.01813.38
5.4.270.0070.01813.51
5.4.260.0050.01913.40
5.4.250.0080.02013.39
5.4.240.0090.02013.55
5.4.230.0060.02313.39
5.4.220.0060.02313.25
5.4.210.0060.02213.48
5.4.200.0030.02012.64
5.4.190.0050.01513.47
5.4.180.0040.01613.45
5.4.170.0020.01913.35
5.4.160.0050.01713.27
5.4.150.0040.01913.38
5.4.140.0050.01712.65
5.4.130.0050.01612.57
5.4.120.0080.01812.55
5.4.110.0050.01812.65
5.4.100.0020.02012.51
5.4.90.0000.02012.60
5.4.80.0050.01612.50
5.4.70.0040.01612.71
5.4.60.0070.01312.62
5.4.50.0030.01512.65
5.4.40.0040.01812.63
5.4.30.0040.02012.67
5.4.20.0070.01412.55
5.4.10.0090.01212.48
5.4.00.0110.01012.48
5.3.290.0030.04314.51
5.3.280.0170.02714.48
5.3.270.0030.04314.61
5.3.260.0030.04014.51
5.3.250.0070.03714.45
5.3.240.0070.03714.49
5.3.230.0030.04014.62
5.3.220.0030.04014.48
5.3.210.0030.04314.61
5.3.200.0030.04014.50
5.3.190.0070.03714.50
5.3.180.0100.03314.46
5.3.170.0100.03314.57
5.3.160.0100.05014.47
5.3.150.0030.05014.48
5.3.140.0000.04314.58
5.3.130.0130.04714.44
5.3.120.0000.04314.48
5.3.110.0070.03714.44
5.3.100.0170.04314.01
5.3.90.0070.05013.93
5.3.80.0000.04313.93
5.3.70.0100.03013.99
5.3.60.0170.02713.92
5.3.50.0030.03713.82
5.3.40.0070.03713.96
5.3.30.0030.03713.75
5.3.20.0070.03313.58
5.3.10.0100.03313.58
5.3.00.0070.03713.50
5.2.170.0070.03011.05
5.2.160.0100.02711.03
5.2.150.0030.03011.12
5.2.140.0030.03011.21
5.2.130.0070.03011.10
5.2.120.0070.03011.11
5.2.110.0100.02310.97
5.2.100.0070.02711.09
5.2.90.0000.03311.19
5.2.80.0070.03010.91
5.2.70.0030.03011.02
5.2.60.0000.04010.93
5.2.50.0070.02711.02
5.2.40.0030.03011.00
5.2.30.0030.04310.94
5.2.20.0070.04010.91
5.2.10.0100.03310.97
5.2.00.0000.04710.72
5.1.60.0030.03010.10
5.1.50.0070.0239.96
5.1.40.0000.0279.98
5.1.30.0070.02310.31
5.1.20.0070.03310.46
5.1.10.0000.03310.14
5.1.00.0070.02310.13
5.0.50.0030.0308.50
5.0.40.0000.0208.35
5.0.30.0100.0338.14
5.0.20.0000.0308.28
5.0.10.0000.0238.30
5.0.00.0000.0378.20
4.4.90.0030.0135.93
4.4.80.0070.0105.84
4.4.70.0000.0175.83
4.4.60.0070.0105.82
4.4.50.0070.0175.82
4.4.40.0000.0305.80
4.4.30.0000.0175.82
4.4.20.0030.0175.98
4.4.10.0100.0135.86
4.4.00.0030.0305.91
4.3.110.0000.0235.81
4.3.100.0070.0205.78
4.3.90.0000.0175.82
4.3.80.0000.0275.82
4.3.70.0000.0205.79
4.3.60.0030.0175.75
4.3.50.0030.0175.84
4.3.40.0000.0305.70
4.3.30.0070.0104.49
4.3.20.0030.0134.47
4.3.10.0000.0174.49
4.3.00.0070.0177.36

preferences:
35.39 ms | 401 KiB | 5 Q