3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; echo(password_hash("admin", 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.0000.01516.74
7.2.00.0060.00619.38
7.1.200.0070.00415.66
7.1.100.0100.00317.51
7.1.70.0060.00617.20
7.1.60.0090.01619.50
7.1.50.0040.00816.77
7.1.00.0030.07322.40
7.0.200.0000.00716.56
7.0.60.0070.08019.91
7.0.50.0100.22717.97
7.0.40.0030.16320.08
7.0.30.0170.18020.16
7.0.20.0200.15720.25
7.0.10.0070.16720.17
7.0.00.0130.20320.16
5.6.280.0000.04321.02
5.6.210.0000.06720.48
5.6.200.0070.15718.29
5.6.190.0100.17320.45
5.6.180.0370.18320.47
5.6.170.0300.19720.52
5.6.160.0070.21320.39
5.6.150.0070.21318.17
5.6.140.0000.22018.07
5.6.130.0000.23018.21
5.6.120.0100.20020.98
5.6.110.0030.16020.98
5.6.100.0100.19320.96
5.6.90.0170.21021.12
5.6.80.0130.21320.53
5.5.350.0100.03720.44
5.5.340.0030.22317.96
5.5.330.0070.15720.37
5.5.320.0270.20320.23
5.5.310.0300.17720.50
5.5.300.0170.19717.88
5.5.290.0070.22717.91
5.5.280.0100.21720.84
5.5.270.0070.21720.73
5.5.260.0000.17720.88
5.5.250.0070.18720.54
5.5.240.0030.21720.25
5.4.450.0230.06719.41
5.4.440.0170.06019.41
5.4.430.0200.05319.27
5.4.420.0200.05019.54
5.4.410.0330.06319.38
5.4.400.0230.04719.15
5.4.390.0200.05019.28
5.4.380.0170.05319.19
5.4.370.0130.05319.20
5.4.360.0170.05318.77
5.4.350.0200.05019.16
5.4.340.0130.05718.80
5.4.320.0200.05019.16
5.4.310.0230.04319.11
5.4.300.0270.04319.15
5.4.290.0170.05018.99
5.4.280.0100.06318.93
5.4.270.0330.04719.19
5.4.260.0170.05019.31
5.4.250.0200.05318.91
5.4.240.0170.05319.29
5.4.230.0200.05019.14
5.4.220.0100.06318.91
5.4.210.0130.05718.80
5.4.200.0200.04319.14
5.4.190.0170.04719.21
5.4.180.0130.05719.29
5.4.170.0270.05018.98
5.4.160.0270.04719.06
5.4.150.0070.05718.89
5.4.140.0370.06316.26
5.4.130.0230.04316.22
5.4.120.0130.06016.32
5.4.110.0100.05016.46
5.4.100.0370.05316.54
5.4.90.0530.05016.54
5.4.80.0330.04716.43
5.4.70.0170.04016.46
5.4.60.0170.04316.46
5.4.50.0500.05316.18
5.4.40.0500.05316.41
5.4.30.0470.05716.44
5.4.20.0700.04316.26
5.4.10.0600.05716.34
5.4.00.0700.05715.63

preferences:
50.59 ms | 400 KiB | 5 Q