3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "foobar"; $salt = substr(hash('sha256', $content), 0, 22); echo password_hash($content, PASSWORD_DEFAULT, ['salt' => $salt]); //

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.07114.91
7.3.120.0060.07414.54
7.3.110.0000.07714.68
7.3.100.0030.07914.51
7.3.90.0030.06914.93
7.3.80.0070.07014.63
7.3.70.0000.06914.59
7.3.60.0000.07314.89
7.3.50.0000.08014.79
7.3.40.0030.07414.64
7.3.30.0030.07714.61
7.3.20.0000.07716.79
7.3.10.0000.07116.50
7.3.00.0030.06816.45
7.2.250.0070.07414.47
7.2.240.0030.07915.23
7.2.230.0130.06514.95
7.2.220.0030.07014.93
7.2.210.0070.07715.12
7.2.200.0030.06914.86
7.2.190.0030.07014.99
7.2.180.0070.07615.12
7.2.170.0100.06514.93
7.2.160.0100.06714.90
7.2.150.0030.06916.87
7.2.140.0070.06616.95
7.2.130.0000.07716.79
7.2.120.0000.07416.82
7.2.110.0060.06816.88
7.2.100.0070.06716.63
7.2.90.0100.06416.86
7.2.80.0030.06916.72
7.2.70.0030.07016.95
7.2.60.0070.07316.85
7.2.50.0000.07416.54
7.2.40.0000.07316.88
7.2.30.0070.06716.92
7.2.20.0070.06716.70
7.2.10.0030.06816.85
7.2.00.0050.07018.08
7.1.330.0130.06815.90
7.1.320.0130.06315.65
7.1.310.0000.07415.82
7.1.300.0100.06815.71
7.1.290.0030.07315.64
7.1.280.0060.06815.72
7.1.270.0030.06815.69
7.1.260.0100.06115.78
7.1.250.0030.06815.70
7.1.240.0030.06815.52
7.1.230.0100.06815.80
7.1.220.0030.06515.61
7.1.210.0070.06415.80
7.1.200.0030.06815.61
7.1.190.0100.06315.79
7.1.180.0030.06715.71
7.1.170.0100.06215.79
7.1.160.0000.07215.69
7.1.150.0070.07015.85
7.1.140.0030.06815.75
7.1.130.0100.06615.83
7.1.120.0130.06215.56
7.1.110.0070.06715.58
7.1.100.0050.06916.79
7.1.90.0100.06315.53
7.1.80.0030.06715.71
7.1.70.0020.07116.29
7.1.60.0100.09217.59
7.1.50.0050.09116.36
7.1.40.0100.06515.88
7.1.30.0000.06815.67
7.1.20.0030.07015.73
7.1.10.0070.07015.57
7.1.00.0000.12319.08
7.0.330.0030.07115.48
7.0.320.0100.06715.13
7.0.310.0060.07115.50
7.0.300.0000.07115.57
7.0.290.0030.07115.33
7.0.280.0000.07515.54
7.0.270.0030.06915.27
7.0.260.0060.06415.13
7.0.250.0030.06415.12
7.0.240.0030.07015.36
7.0.230.0000.07315.41
7.0.220.0070.06415.18
7.0.210.0100.06815.22
7.0.200.0190.06415.12
7.0.190.0060.07115.46
7.0.180.0100.06415.21
7.0.170.0100.06615.20
7.0.160.0030.07215.40
7.0.150.0030.07315.23
7.0.140.0130.07415.16
7.0.130.0100.06715.43
7.0.120.0160.06115.55
7.0.110.0030.07315.46
7.0.100.0100.06815.43
7.0.90.0070.06415.31
7.0.80.0000.07215.32
7.0.70.0070.06915.27
7.0.60.0130.10618.47
7.0.50.0080.11216.71
7.0.40.0030.11416.86
7.0.30.0120.08416.78
7.0.20.0180.11316.82
7.0.10.0070.10516.65
7.0.00.0070.11016.79
5.6.400.0060.07014.30
5.6.390.0030.07314.29
5.6.380.0030.07314.06
5.6.370.0070.06514.16
5.6.360.0000.07714.28
5.6.350.0030.07114.53
5.6.340.0000.07414.29
5.6.330.0070.07014.20
5.6.320.0000.07014.07
5.6.310.0000.06914.43
5.6.300.0100.06814.33
5.6.290.0120.06114.45
5.6.280.0020.11217.61
5.6.270.0030.06914.34
5.6.260.0070.06514.09
5.6.250.0030.07414.37
5.6.240.0070.06914.34
5.6.230.0060.06414.27
5.6.220.0030.07314.37
5.6.210.0000.12017.41
5.6.200.0030.10616.16
5.6.190.0030.12717.24
5.6.180.0170.09617.25
5.6.170.0180.11017.43
5.6.160.0070.08617.19
5.6.150.0020.11916.21
5.6.140.0050.09216.20
5.6.130.0050.12116.09
5.6.120.0080.09217.74
5.6.110.0070.11617.53
5.6.100.0080.11117.71
5.6.90.0120.11317.53
5.6.80.0120.10717.36
5.6.70.0000.07113.93
5.6.60.0070.06714.15
5.6.50.0070.06714.25
5.6.40.0030.06814.21
5.6.30.0100.06214.09
5.6.20.0100.06713.91
5.6.10.0030.06913.91
5.6.00.0030.06514.12
5.5.380.0070.06814.23
5.5.370.0030.07014.32
5.5.360.0100.06314.36
5.5.350.0030.11017.22
5.5.340.0080.10516.05
5.5.330.0070.10917.13
5.5.320.0300.10217.32
5.5.310.0120.11717.20
5.5.300.0030.08516.22
5.5.290.0130.10716.09
5.5.280.0070.10017.31
5.5.270.0080.09517.43
5.5.260.0020.09317.45
5.5.250.0050.10917.31
5.5.240.0150.10517.20
5.5.230.0100.06214.09
5.5.220.0070.06613.97
5.5.210.0070.07114.09
5.5.200.0070.06714.22
5.5.190.0000.07914.09
5.5.180.0030.06814.17
5.5.170.0070.06614.15
5.5.160.0130.06414.34
5.5.150.0070.07214.01
5.5.140.0030.07114.23
5.5.130.0070.06714.02
5.5.120.0030.06913.84
5.5.110.0070.07114.07
5.5.100.0070.06914.04
5.5.90.0030.06714.12
5.5.80.0030.06514.09
5.5.70.0000.07414.11
5.5.60.0030.07214.14
5.5.50.0030.06513.76
5.5.40.0030.07214.01
5.5.30.0030.07414.25
5.5.20.0070.06614.21
5.5.10.0030.06514.05
5.5.00.0070.06614.07

preferences:
35.36 ms | 401 KiB | 5 Q