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' => 6, // 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.00.0110.01514.81
7.3.120.0120.01514.62
7.3.110.0070.01814.65
7.3.100.0030.01714.67
7.3.90.0080.01714.74
7.3.80.0080.01014.84
7.3.70.0090.01714.71
7.3.60.0070.01314.72
7.3.50.0090.01514.64
7.3.40.0050.01414.72
7.3.30.0060.01414.73
7.3.20.0070.01516.55
7.3.10.0050.01516.49
7.3.00.0040.01716.38
7.2.250.0080.01714.79
7.2.240.0040.02315.04
7.2.230.0050.01914.81
7.2.220.0100.01514.79
7.2.210.0080.01715.00
7.2.200.0020.02014.87
7.2.190.0020.02114.97
7.2.180.0060.01714.96
7.2.170.0070.01014.88
7.2.110.0140.02216.26
7.2.100.0100.01716.41
7.2.90.0060.01916.45
7.2.80.0110.01416.66
7.2.70.0440.01716.79
7.2.60.0020.02516.59
7.2.50.0140.01416.96
7.2.40.0180.00616.70
7.2.30.0140.01416.79
7.2.20.0070.01716.71
7.2.10.0150.01216.65
7.2.00.0080.01717.90
7.1.330.0060.01615.82
7.1.320.0060.01315.72
7.1.310.0030.01915.78
7.1.300.0080.01215.75
7.1.290.0040.01915.66
7.1.280.0030.01415.82
7.1.270.0020.01815.74
7.1.260.0000.01815.87
7.1.230.0150.01515.79
7.1.220.0480.01015.91
7.1.210.0090.01515.78
7.1.200.0120.01615.73
7.1.190.0030.01915.81
7.1.180.0420.02115.73
7.1.170.0140.01415.59
7.1.160.0070.01915.80
7.1.150.0140.01115.75
7.1.140.0160.01015.63
7.1.130.0530.01015.73
7.1.120.0140.01415.75
7.1.110.0090.01515.66
7.1.100.0530.01815.76
7.1.90.0070.02015.66
7.1.80.0160.01015.84
7.1.70.0060.01416.46
7.1.60.0090.02517.72
7.1.50.0100.02316.10
7.1.40.0110.01415.42
7.1.30.0070.02115.91
7.1.20.0270.02315.78
7.1.10.0070.01415.77
7.1.00.0060.05218.99
7.0.310.0080.01415.10
7.0.300.0040.01915.32
7.0.290.0030.02015.23
7.0.280.0330.01015.28
7.0.270.0140.00715.54
7.0.260.0490.00915.25
7.0.250.0090.01615.58
7.0.240.0100.02015.48
7.0.230.0040.01915.35
7.0.220.0150.01215.34
7.0.210.0130.01315.32
7.0.200.0110.01414.93
7.0.190.0090.01215.30
7.0.180.0090.01915.51
7.0.170.0110.01915.24
7.0.160.0090.01615.43
7.0.150.0100.01715.45
7.0.140.0050.04418.71
7.0.130.0100.01415.30
7.0.120.0090.01515.52
7.0.110.0120.05417.59
7.0.100.0090.04517.47
7.0.90.0030.06017.54
7.0.80.0040.04117.62
7.0.70.0150.04717.68
7.0.60.0080.05317.69
7.0.50.0070.05417.65
7.0.40.0050.05216.57
7.0.30.0110.05516.57
7.0.20.0050.04016.42
7.0.10.0080.03416.51
7.0.00.0070.03416.58
5.6.380.0110.01414.36
5.6.370.0060.01614.02
5.6.360.0130.00914.17
5.6.350.0090.01214.05
5.6.340.0130.01114.22
5.6.330.0040.01714.08
5.6.320.0130.01314.27
5.6.310.0190.01014.14
5.6.300.0090.01614.28
5.6.290.0100.01614.51
5.6.280.0120.04817.78
5.6.270.0150.01514.28
5.6.260.0090.04317.44
5.6.250.0100.05117.53
5.6.240.0030.06017.34
5.6.230.0070.04217.33
5.6.220.0070.05617.28
5.6.210.0130.05217.23
5.6.200.0040.05617.41
5.6.190.0150.04717.37
5.6.180.0070.05017.37
5.6.170.0090.05417.42
5.6.160.0050.04717.48
5.6.150.0100.05017.48
5.6.140.0050.06217.54
5.6.130.0130.05317.62
5.6.120.0160.04717.47
5.6.110.0090.05417.28
5.6.100.0100.05017.32
5.6.90.0070.03517.45
5.6.80.0100.04917.12
5.6.70.0070.05417.12
5.6.60.0100.04716.92
5.6.50.0060.05717.08
5.6.40.0050.05317.03
5.6.30.0070.05316.89
5.6.20.0110.04816.90
5.6.10.0080.05117.03
5.6.00.0060.05517.10
5.5.380.0070.05215.20
5.5.370.0070.05415.24
5.5.360.0120.04615.09
5.5.350.0090.05015.19
5.5.340.0090.05115.46
5.5.330.0060.03415.32
5.5.320.0030.03515.45
5.5.310.0060.03515.41
5.5.300.0030.05215.39
5.5.290.0080.04915.41
5.5.280.0130.04815.52
5.5.270.0070.04715.28
5.5.260.0120.04715.34
5.5.250.0080.04715.41
5.5.240.0040.04515.05
5.5.230.0070.05115.10
5.5.220.0070.05415.04
5.5.210.0020.05415.19
5.5.200.0090.05014.95
5.5.190.0040.05215.12
5.5.180.0030.04815.19
5.5.170.0110.01914.04
5.5.160.0070.05115.02
5.5.150.0050.04315.13
5.5.140.0090.04914.99
5.5.130.0040.05315.19
5.5.120.0090.04915.19
5.5.110.0100.05015.13
5.5.100.0050.05115.13
5.5.90.0020.05715.01
5.5.80.0060.03715.08
5.5.70.0080.05115.13
5.5.60.0090.05115.01
5.5.50.0090.04815.06
5.5.40.0080.05214.98
5.5.30.0060.05315.00
5.5.20.0090.04915.07
5.5.10.0110.04915.03
5.5.00.0060.04215.12
5.4.450.0050.04416.20
5.4.440.0100.04016.06
5.4.430.0100.03816.11
5.4.420.0100.03516.13
5.4.410.0080.04015.98
5.4.400.0030.04515.86
5.4.390.0100.03715.98
5.4.380.0060.04115.94
5.4.370.0090.03415.87
5.4.360.0110.04015.89
5.4.350.0040.04015.99
5.4.340.0100.03915.91
5.4.330.0060.00612.79
5.4.320.0070.04015.86
5.4.310.0070.03815.89
5.4.300.0120.03315.95
5.4.290.0110.03615.89
5.4.280.0060.04015.87
5.4.270.0050.02815.90
5.4.260.0050.03815.90
5.4.250.0070.03515.95
5.4.240.0090.04215.98
5.4.230.0060.03915.89
5.4.220.0100.03716.03
5.4.210.0090.03715.94
5.4.200.0090.03315.97
5.4.190.0080.03715.86
5.4.180.0090.02315.93
5.4.170.0020.04415.89
5.4.160.0100.02015.92
5.4.150.0090.03215.94
5.4.140.0080.04014.53
5.4.130.0100.03414.56
5.4.120.0110.03814.63
5.4.110.0050.04214.66
5.4.100.0030.04314.65
5.4.90.0070.04114.63
5.4.80.0080.02114.57
5.4.70.0040.04014.65
5.4.60.0060.03214.56
5.4.50.0090.03214.63
5.4.40.0090.03614.52
5.4.30.0070.04214.63
5.4.20.0050.03014.62
5.4.10.0050.04014.63
5.4.00.0140.03514.37
5.3.290.0070.04113.70
5.3.280.0070.03813.65
5.3.270.0070.03713.67
5.3.260.0040.04213.75
5.3.250.0090.03913.62
5.3.240.0090.03813.62
5.3.230.0080.03813.66
5.3.220.0090.04013.65
5.3.210.0070.02813.62
5.3.200.0080.03313.62
5.3.190.0040.02913.73
5.3.180.0070.04213.65
5.3.170.0060.04313.71
5.3.160.0070.03713.71
5.3.150.0070.04113.68
5.3.140.0110.03113.59
5.3.130.0060.04213.62
5.3.120.0090.02013.59
5.3.110.0070.03913.65
5.3.100.0100.03513.39
5.3.90.0050.04213.46
5.3.80.0080.04013.32
5.3.70.0040.03913.35
5.3.60.0040.03813.33
5.3.50.0060.03813.41
5.3.40.0060.03013.31
5.3.30.0110.03313.29
5.3.20.0040.04013.15
5.3.10.0100.03313.17
5.3.00.0070.03513.10
5.2.170.0030.03711.93
5.2.160.0050.03311.93
5.2.150.0050.03511.93
5.2.140.0050.03511.90
5.2.130.0030.03511.91
5.2.120.0110.02111.90
5.2.110.0080.03211.94
5.2.100.0110.02711.98
5.2.90.0090.02011.95
5.2.80.0060.03411.95
5.2.70.0020.03311.90
5.2.60.0070.02011.89
5.2.50.0070.03211.91
5.2.40.0070.01311.85
5.2.30.0070.03011.85
5.2.20.0050.03011.83
5.2.10.0050.03811.83
5.2.00.0030.01711.76
5.1.60.0000.01611.36
5.1.50.0070.01311.43
5.1.40.0020.02711.37
5.1.30.0060.03011.53
5.1.20.0080.01211.61
5.1.10.0040.02911.37
5.1.00.0070.02511.50
5.0.50.0000.01211.36
5.0.40.0020.01211.36
5.0.30.0030.03511.36
5.0.20.0060.01711.36
5.0.10.0060.02011.36
5.0.00.0050.03311.36
4.4.90.0020.01211.36
4.4.80.0070.01511.36
4.4.70.0020.01211.36
4.4.60.0040.01211.36
4.4.50.0020.01111.36
4.4.40.0030.02711.36
4.4.30.0040.01711.36
4.4.20.0010.01011.36
4.4.10.0020.01211.36
4.4.00.0050.01311.36
4.3.110.0010.01311.36
4.3.100.0040.01511.36
4.3.90.0030.01711.36
4.3.80.0030.01811.36
4.3.70.0030.01911.36
4.3.60.0030.01511.36
4.3.50.0060.01511.36
4.3.40.0020.02611.36
4.3.30.0020.01711.36
4.3.20.0020.01511.36
4.3.10.0020.01211.36
4.3.00.0020.02111.36

preferences:
37.29 ms | 400 KiB | 5 Q