3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * In this case, we want to increase the default cost for BCRYPT to 12. * Note that we also switched to BCRYPT, which will always be 60 characters. */ $options = [ 'cost' => 15, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>

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.0031.88416.57
7.2.00.0031.94219.35
7.1.200.0101.91015.65
7.1.100.0331.79217.85
7.1.70.0001.92417.15
7.1.60.0031.98919.12
7.1.50.0101.93916.82
7.1.00.0031.84722.37
7.0.200.0101.95616.77
7.0.60.0032.01320.00
7.0.50.0001.93317.68
7.0.40.0071.94720.21
7.0.30.0332.00720.21
7.0.20.0331.94320.10
7.0.10.0031.99720.23
7.0.00.0131.91020.07
5.6.280.0001.74721.09
5.6.210.0172.01320.70
5.6.200.0071.99318.18
5.6.190.0071.94320.52
5.6.180.0071.94320.50
5.6.170.0201.96720.71
5.6.160.0132.00720.45
5.6.150.0031.97718.15
5.6.140.0032.03018.18
5.6.130.0102.01318.11
5.6.120.0172.00021.14
5.6.110.0032.00320.99
5.6.100.0031.99720.88
5.6.90.0072.01721.09
5.6.80.0232.02020.37
5.6.70.0301.79020.49
5.5.350.0231.72720.32
5.5.340.0032.02017.96
5.5.330.0001.96020.27
5.5.320.0271.99320.28
5.5.310.0801.92020.26
5.5.300.0001.93017.95
5.5.290.0102.02018.09
5.5.280.0071.97320.79
5.5.270.0071.98020.79
5.5.260.0031.93320.87
5.5.250.0071.94720.68
5.5.240.0131.67720.25
5.4.450.0700.05019.49
5.4.440.0670.05019.24
5.4.430.0570.06319.60
5.4.420.0600.07319.62
5.4.410.0600.06019.48
5.4.400.0770.04019.11
5.4.390.0670.06019.22
5.4.380.0600.06019.23
5.4.370.0600.05718.95
5.4.360.0800.05319.22
5.4.350.0570.05719.02
5.4.340.0830.04019.16
5.4.320.0700.04719.27
5.4.310.0600.05719.13
5.4.300.0870.05319.27
5.4.290.0530.06319.16
5.4.280.0700.05019.08
5.4.270.0630.05719.19
5.4.260.0770.05018.96
5.4.250.0630.05719.16
5.4.240.0600.05319.13
5.4.230.0700.05318.79
5.4.220.0770.07319.21
5.4.210.0630.05718.98
5.4.200.0670.05719.15
5.4.190.0670.05319.15
5.4.180.0670.05019.18
5.4.170.0630.05319.18
5.4.160.0830.06319.27
5.4.150.0730.07019.25
5.4.140.0730.06016.36
5.4.130.0630.05716.35
5.4.120.0770.04716.32
5.4.110.0700.05316.18
5.4.100.0770.04716.35
5.4.90.0670.05016.56
5.4.80.0630.05316.02
5.4.70.0170.03016.37
5.4.60.0300.03316.19
5.4.50.0030.05316.47
5.4.40.0070.06716.38
5.4.30.0030.07716.38
5.4.20.0030.07316.38

preferences:
38.07 ms | 400 KiB | 5 Q