3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(password_hash('password', PASSWORD_DEFAULT, ['cost' => 14])); var_dump(strlen(password_hash('password', PASSWORD_DEFAULT, ['cost' => 14])));

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.2.60.0131.88616.47
7.2.00.0001.94519.07
7.1.200.0001.91115.66
7.1.100.0031.95218.26
7.1.70.0001.92917.10
7.1.60.0072.01019.12
7.1.50.0131.97116.85
7.1.00.0031.85322.40
7.0.200.0031.93016.72
7.0.60.0102.03319.96
7.0.50.0031.93717.95
7.0.40.0032.02020.02
7.0.30.0472.00020.13
7.0.20.0202.02020.06
7.0.10.0001.93720.09
7.0.00.0102.02720.09
5.6.280.0001.82720.92
5.6.210.0032.01320.43
5.6.200.0072.00318.22
5.6.190.0072.01720.62
5.6.180.0372.00020.49
5.6.170.0301.98020.48
5.6.160.0031.96720.39
5.6.150.0031.96318.21
5.6.140.0172.00718.27
5.6.130.0002.02018.18
5.6.120.0101.96021.01
5.6.110.0032.01321.10
5.6.100.0172.02020.95
5.6.90.0031.94320.97
5.6.80.0071.96720.41
5.5.350.0101.84720.52
5.5.340.0071.97317.98
5.5.330.0071.94020.24
5.5.320.0032.03320.29
5.5.310.0272.01320.32
5.5.300.0131.97018.01
5.5.290.0172.00017.96
5.5.280.0131.94720.79
5.5.270.0002.02320.76
5.5.260.0072.03020.73
5.5.250.0071.97020.70
5.5.240.3431.74720.11
5.4.450.0170.05019.56
5.4.440.0290.06219.28
5.4.430.0260.06019.54
5.4.420.0240.05719.44
5.4.410.0220.06019.27
5.4.400.0270.05919.07
5.4.390.0280.05319.05
5.4.380.0420.05219.17
5.4.370.0260.06019.09
5.4.360.0280.05318.90
5.4.350.0210.05719.04
5.4.340.0280.05919.12
5.4.320.0340.05819.26
5.4.310.0330.05419.10
5.4.300.0390.06319.11
5.4.290.0400.05319.03
5.4.280.0340.05919.26
5.4.270.0280.05719.24
5.4.260.0310.05419.23
5.4.250.0310.05219.26
5.4.240.0300.05319.03
5.4.230.0220.06119.06
5.4.220.0310.05619.22
5.4.210.0260.05318.98
5.4.200.0340.05616.79
5.4.190.0310.06019.15
5.4.180.0300.05618.97
5.4.170.0310.04918.99
5.4.160.0280.05019.05
5.4.150.0220.05718.94
5.4.140.0300.04816.39
5.4.130.0240.05316.47
5.4.120.0220.05816.41
5.4.110.0270.04916.30
5.4.100.0240.05116.31
5.4.90.0220.05616.34
5.4.80.0260.05016.37
5.4.70.0360.05216.36
5.4.60.0170.07316.04
5.4.50.0030.04016.16
5.4.40.0170.08016.40
5.4.30.0130.04316.20
5.4.20.0100.04316.03

preferences:
35.17 ms | 401 KiB | 5 Q