3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); //"$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq" $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); //"$2y$10$hHi0De9WN.HL6.Fz1ElvbOMIU5NA0tetwdJzNziKJvHFXFqOxsybi" $hash['info'][] = password_get_info($hash['hash'][0]); //array("algo" => 1 , "algoName" => "bcrypt" , "options" => array("cost" => 7 )) $hash['info'][] = password_get_info($hash['hash'][1]); //array("algo" => 1 , "algoName" => "bcrypt" , "options" => array("cost" => 10 )) $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_BCRYPT,$options); //false $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_DEFAULT); //true $hash['rehash'][] = password_needs_rehash($hash['hash'][1],PASSWORD_DEFAULT); //false $hash['pas_verify'][] = password_verify('rasmuslerdorf', $hash['hash'][0]); //true $hash['pas_verify'][] = password_verify('rasmuslerdorf', $hash['hash'][1]); //true $hash['pas_verify'][] = password_verify('rasmuslerdorff', $hash['hash'][0]); //false $hash['pas_verify'][] = password_verify('rasmuslerdorff', $hash['hash'][1]); //false 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.10.0030.22314.78
7.4.00.0000.22315.10
7.3.130.0100.22714.84
7.3.120.0030.23114.95
7.3.110.0070.22814.95
7.3.100.0100.21614.67
7.3.90.0130.21414.80
7.3.80.0070.21114.94
7.3.70.0100.21114.86
7.3.60.0070.21315.03
7.3.50.0000.21314.69
7.3.40.0070.21615.04
7.3.30.0160.21214.77
7.3.20.0030.21016.50
7.3.10.0000.21916.61
7.3.00.0000.21216.66
7.2.260.0030.22415.18
7.2.250.0120.22315.05
7.2.240.0030.22114.93
7.2.230.0070.21614.85
7.2.220.0130.21415.08
7.2.210.0100.22115.22
7.2.200.0030.21314.87
7.2.190.0070.22014.99
7.2.180.0050.22114.72
7.2.170.0100.23214.84
7.2.160.0100.21614.73
7.2.150.0030.20916.72
7.2.140.0100.20216.77
7.2.130.0000.22316.70
7.2.120.0030.21616.80
7.2.110.0030.21316.99
7.2.100.0000.21416.88
7.2.90.0030.21816.61
7.2.80.0000.21516.86
7.2.70.0030.22016.65
7.2.60.0030.21416.77
7.2.50.0030.21516.95
7.2.40.0070.20816.77
7.2.30.0000.21816.93
7.2.20.0030.21916.87
7.2.10.0070.20816.61
7.2.00.0100.20216.82
7.1.330.0030.22715.48
7.1.320.0030.21615.92
7.1.310.0000.21215.69
7.1.300.0000.22315.67
7.1.290.0100.20615.74
7.1.280.0100.21015.82
7.1.270.0030.20715.54
7.1.260.0100.21615.87
7.1.250.0070.21615.80
7.1.240.0070.21015.88
7.1.230.0070.21215.62
7.1.220.0070.20715.49
7.1.210.0000.21315.77
7.1.200.0080.21515.83
7.1.190.0070.20715.53
7.1.180.0070.21315.56
7.1.170.0030.21615.84
7.1.160.0030.21615.55
7.1.150.0070.21915.77
7.1.140.0030.21515.68
7.1.130.0030.21115.86
7.1.120.0030.20615.84
7.1.110.0100.22115.78
7.1.100.0310.21215.91
7.1.90.0030.21615.51
7.1.80.0030.20615.79
7.1.70.0150.21116.45
7.1.60.0050.24217.43
7.1.50.0050.24816.30
7.1.40.0070.21415.82
7.1.30.0070.21615.73
7.1.20.0030.21015.75
7.1.10.0000.21015.88
7.1.00.0050.26719.21
7.0.330.0130.21215.19
7.0.320.0030.22615.16
7.0.310.0100.20715.32
7.0.300.0100.19915.39
7.0.290.0100.21715.27
7.0.280.0000.21915.37
7.0.270.0000.21315.16
7.0.260.0070.21215.29
7.0.250.0030.20515.28
7.0.240.0030.20715.49
7.0.230.0070.20715.31
7.0.220.0070.21715.38
7.0.210.0070.20215.48
7.0.200.0050.20615.97
7.0.190.0000.21315.32
7.0.180.0100.20715.42
7.0.170.0070.20915.39
7.0.160.0070.20515.45
7.0.150.0000.21915.41
7.0.140.0050.25418.69
7.0.130.0070.20515.30
7.0.120.0030.21215.55
7.0.110.0580.20017.72
7.0.100.0180.22917.68
7.0.90.0170.21417.62
7.0.80.0170.27717.63
7.0.70.0270.23817.73
7.0.60.0250.24817.67
7.0.50.0050.24517.69
7.0.40.0080.24716.56
7.0.30.0220.21116.60
7.0.20.0020.21316.65
7.0.10.0070.21016.56
7.0.00.0070.20716.57
5.6.400.0030.21014.48
5.6.390.0100.20814.13
5.6.380.0070.21014.59
5.6.370.0070.20814.46
5.6.360.0070.20614.30
5.6.350.0030.21514.40
5.6.340.0100.22114.64
5.6.330.0000.21614.29
5.6.320.0030.22214.13
5.6.310.0070.21414.25
5.6.300.0030.20814.45
5.6.290.0030.20714.37
5.6.280.0030.26517.91
5.6.270.0000.20914.18
5.6.260.0250.22917.34
5.6.250.0050.20817.46
5.6.240.0110.23417.49
5.6.230.0050.23017.64
5.6.220.0000.23617.25
5.6.210.0070.20817.42
5.6.200.0030.24317.52
5.6.190.0030.26017.46
5.6.180.0030.21617.48
5.6.170.0050.20617.46
5.6.160.0070.20117.50
5.6.150.0020.21217.52
5.6.140.0070.21017.42
5.6.130.0100.20517.53
5.6.120.0250.20717.50
5.6.110.0330.20217.62
5.6.100.0020.22317.43
5.6.90.0050.20617.54
5.6.80.0020.23117.20
5.6.70.0030.22617.02
5.6.60.0050.20717.30
5.6.50.0050.20917.11
5.6.40.0080.20317.10
5.6.30.0070.24017.15
5.6.20.0070.21417.15
5.6.10.0060.20717.08
5.6.00.0120.24017.15
5.5.380.0070.26215.87
5.5.370.0080.20715.81
5.5.360.0050.25215.90
5.5.350.0120.22215.78
5.5.340.0050.21416.11
5.5.330.0070.23716.28
5.5.320.0030.23016.05
5.5.310.0030.20616.26
5.5.300.0070.21616.38
5.5.290.0050.20516.30
5.5.280.0050.20616.13
5.5.270.0020.21316.08
5.5.260.0080.25116.19
5.5.250.0170.21516.01
5.5.240.0080.25215.77
5.5.230.0020.21415.62
5.5.220.0030.20915.72
5.5.210.0050.20815.83
5.5.200.0020.21415.91
5.5.190.0030.21015.65
5.5.180.0080.21215.91
5.5.170.0030.20913.90
5.5.160.0050.22415.79
5.5.150.0050.22715.85
5.5.140.0070.20516.06
5.5.130.0000.21315.86
5.5.120.0020.22215.81
5.5.110.0030.23316.07
5.5.100.0080.21215.77
5.5.90.0050.22015.78
5.5.80.0030.25515.63
5.5.70.0020.23315.83
5.5.60.0070.23015.85
5.5.50.0050.23415.95
5.5.40.0030.22915.89
5.5.30.0030.21115.70
5.5.20.0050.23115.73
5.5.10.0070.22715.61
5.5.00.0030.23015.73
5.4.450.0070.02015.19
5.4.440.0030.02115.07
5.4.430.0010.02815.15
5.4.420.0020.01815.13
5.4.410.0050.03815.17
5.4.400.0000.02514.96
5.4.390.0010.02514.75
5.4.380.0020.01814.71
5.4.370.0030.01814.90
5.4.360.0070.02014.79
5.4.350.0000.02514.92
5.4.340.0070.01814.78
5.4.330.0070.00010.81
5.4.320.0020.02314.92
5.4.310.0090.02214.84
5.4.300.0020.03514.93
5.4.290.0070.03014.96
5.4.280.0050.02514.93
5.4.270.0030.03514.82
5.4.260.0030.03015.00
5.4.250.0030.03915.01
5.4.240.0030.03714.81
5.4.230.0030.04014.89
5.4.220.0030.02114.87
5.4.210.0040.03014.74
5.4.200.0030.01814.95
5.4.190.0050.02014.84
5.4.180.0030.02214.83
5.4.170.0000.02715.05
5.4.160.0030.02214.94
5.4.150.0050.02514.84
5.4.140.0020.03613.66
5.4.130.0060.02013.48
5.4.120.0050.03213.56
5.4.110.0020.02213.61
5.4.100.0020.02113.41
5.4.90.0050.03413.54
5.4.80.0050.01813.54
5.4.70.0020.02313.36
5.4.60.0050.02113.63
5.4.50.0050.03013.56
5.4.40.0030.01813.56
5.4.30.0050.02913.47
5.4.20.0000.03213.67
5.4.10.0080.02113.54
5.4.00.0050.02413.50
5.3.290.0040.01812.40
5.3.280.0070.01512.35
5.3.270.0090.01812.49
5.3.260.0050.02712.27
5.3.250.0110.01612.30
5.3.240.0050.02012.30
5.3.230.0070.01812.41
5.3.220.0070.03312.19
5.3.210.0060.02112.28
5.3.200.0050.04212.34
5.3.190.0030.01912.26
5.3.180.0050.03812.44
5.3.170.0070.01612.44
5.3.160.0080.02512.37
5.3.150.0070.04012.32
5.3.140.0090.02512.38
5.3.130.0060.02112.41
5.3.120.0050.01912.42
5.3.110.0050.02012.42
5.3.100.0080.04212.08
5.3.90.0070.03212.12
5.3.80.0020.03012.09
5.3.70.0050.03712.03
5.3.60.0030.03112.05
5.3.50.0070.02711.99
5.3.40.0060.03111.99
5.3.30.0080.01711.94
5.3.20.0050.02411.81
5.3.10.0080.02311.81
5.3.00.0010.02611.70
5.2.170.0000.03711.94
5.2.160.0030.02711.94
5.2.150.0030.02711.94
5.2.140.0070.02711.94
5.2.130.0030.03311.94
5.2.120.0030.05011.94
5.2.110.0130.02311.94
5.2.100.0100.02011.94
5.2.90.0000.03011.94
5.2.80.0000.03311.94
5.2.70.0030.02311.94
5.2.60.0000.03011.94
5.2.50.0030.03011.94
5.2.40.0030.03011.94
5.2.30.0070.02011.94
5.2.20.0000.02711.94
5.2.10.0000.03011.94
5.2.00.0070.02011.94
5.1.60.0070.02011.94
5.1.50.0070.02011.94
5.1.40.0030.02311.94
5.1.30.0000.03311.94
5.1.20.0000.02711.94
5.1.10.0070.02311.94
5.1.00.0000.03011.94
5.0.50.0030.02011.94
5.0.40.0000.02011.94
5.0.30.0030.03311.94
5.0.20.0000.02711.94
5.0.10.0000.02311.94
5.0.00.0030.03011.94
4.4.90.0000.02011.94
4.4.80.0000.01311.94
4.4.70.0000.01311.94
4.4.60.0000.01711.94
4.4.50.0030.01711.94
4.4.40.0030.02311.94
4.4.30.0000.01711.94
4.4.20.0030.01311.94
4.4.10.0000.02011.94
4.4.00.0000.06311.94
4.3.110.0000.03011.94
4.3.100.0030.02711.94
4.3.90.0030.01311.94
4.3.80.0030.04711.94
4.3.70.0000.02311.94
4.3.60.0030.01711.94
4.3.50.0000.01711.94
4.3.40.0000.02711.94
4.3.30.0000.01311.94
4.3.20.0000.02011.94
4.3.10.0000.02011.94
4.3.00.0000.01711.94

preferences:
39.65 ms | 401 KiB | 5 Q