3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; echo password_hash("password", PASSWORD_BCRYPT, $options);

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.0110.00316.79
7.2.00.0070.01019.25
7.1.200.0000.01215.86
7.1.100.0040.01217.86
7.1.70.0070.00716.80
7.1.60.0090.01519.50
7.1.50.0040.01816.87
7.1.00.0130.06322.33
7.0.200.0030.00616.81
7.0.60.0270.05020.02
7.0.50.0130.19017.66
7.0.40.0070.22320.30
7.0.30.0430.15320.21
7.0.20.0200.19320.20
7.0.10.0070.22720.08
7.0.00.0170.21320.12
5.6.280.0000.05721.02
5.6.210.0170.07320.65
5.6.200.0030.23318.19
5.6.190.0030.17320.45
5.6.180.0230.17320.41
5.6.170.0170.17320.71
5.6.160.0030.18020.43
5.6.150.0000.16018.29
5.6.140.0000.17318.18
5.6.130.0070.22018.17
5.6.120.0030.20720.97
5.6.110.0070.17021.04
5.6.100.0070.23021.12
5.6.90.0070.21321.11
5.6.80.0200.19720.38
5.5.350.0030.06020.46
5.5.340.0100.17717.90
5.5.330.0070.16720.44
5.5.320.0170.20020.36
5.5.310.0170.16720.24
5.5.300.0100.21018.00
5.5.290.0130.16318.06
5.5.280.0030.18320.84
5.5.270.0070.20720.74
5.5.260.0030.23720.78
5.5.250.0030.22320.78
5.5.240.0100.20320.25
5.4.450.0670.05019.23
5.4.440.0600.05719.21
5.4.430.0570.06019.09
5.4.420.0600.05719.60
5.4.410.0600.05319.47
5.4.400.0670.04319.10
5.4.390.0770.04319.18
5.4.380.0670.05019.21
5.4.370.0600.05318.88
5.4.360.0500.06719.21
5.4.350.0670.05019.14
5.4.340.0500.06719.30
5.4.320.0630.05318.95
5.4.310.0630.04719.30
5.4.300.0600.05719.07
5.4.290.0670.05019.15
5.4.280.0530.06019.07
5.4.270.0530.06019.14
5.4.260.0700.04318.77
5.4.250.0600.05319.27
5.4.240.0570.05719.17
5.4.230.0530.05718.94
5.4.220.0600.05718.77
5.4.210.0670.04718.77
5.4.200.0600.05018.94
5.4.190.0600.05319.13
5.4.180.0570.05318.86
5.4.170.0530.05719.20
5.4.160.0670.05318.98
5.4.150.0570.06019.24
5.4.140.0700.04316.44
5.4.130.0630.05016.59
5.4.120.0670.04316.34
5.4.110.0770.05016.52
5.4.100.0670.06016.55
5.4.90.0530.05316.47
5.4.80.0670.03716.16
5.4.70.0500.05716.27
5.4.60.0570.05016.04
5.4.50.0630.04716.43
5.4.40.0630.05016.18
5.4.30.0670.04016.45
5.4.20.0570.05716.44
5.4.10.0830.03316.43
5.4.00.0700.04315.77

preferences:
43.94 ms | 404 KiB | 6 Q