3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'sup3r53cr3t!'; $options = [ 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM) ]; $hash = password_hash($password, PASSWORD_DEFAULT, $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.4.00.0070.01414.83
7.3.120.0000.02014.45
7.3.110.0080.00614.66
7.3.100.0090.00314.90
7.3.90.0070.00314.88
7.3.80.0040.01114.77
7.3.70.0040.00814.92
7.3.60.0000.01214.84
7.3.50.0050.00314.86
7.3.40.0040.00814.84
7.3.30.0070.01014.60
7.3.20.0030.00916.51
7.3.10.0120.00316.07
7.3.00.0120.00316.49
7.2.250.0080.01114.83
7.2.240.0030.01815.07
7.2.230.0000.00914.80
7.2.220.0040.00815.09
7.2.210.0100.00714.88
7.2.200.0030.01214.83
7.2.190.0120.00314.87
7.2.180.0040.00415.00
7.2.170.0040.01114.69
7.2.130.0180.00616.04
7.2.120.0110.01115.94
7.2.110.0160.00416.54
7.2.100.0140.00716.06
7.2.90.0080.01215.86
7.2.80.0080.00815.94
7.2.70.0160.00016.16
7.2.60.0070.01116.78
7.2.50.0180.00516.30
7.2.40.0100.01016.34
7.2.30.0120.00616.23
7.2.20.0070.00716.27
7.2.10.0140.00516.32
7.2.00.0070.00917.90
7.1.330.0030.01415.42
7.1.320.0000.01315.67
7.1.310.0090.00615.75
7.1.300.0110.00415.68
7.1.290.0060.00615.37
7.1.280.0040.01115.39
7.1.270.0090.00315.26
7.1.260.0000.01315.46
7.1.250.0100.01015.02
7.1.200.0100.00315.54
7.1.100.0040.00717.76
7.1.70.0040.00416.91
7.1.60.0170.00719.46
7.1.50.0090.01516.89
7.1.00.0030.09722.44
7.0.200.0030.00616.81
7.0.140.0100.06721.99
7.0.60.0070.07319.85
7.0.50.0130.10717.82
7.0.40.0270.11720.24
7.0.30.0330.15320.25
7.0.20.0230.13020.13
7.0.10.0030.15720.21
7.0.00.0070.10320.07
5.6.280.0000.07721.07
5.6.210.0070.04720.72
5.6.200.0070.10318.13
5.6.190.0030.10320.61
5.6.180.0200.16020.43
5.6.170.0330.15320.47
5.6.160.0000.10320.61
5.6.150.0100.14718.23
5.6.140.0100.09718.15
5.6.130.0100.16318.16
5.6.120.0100.15721.14
5.6.110.0070.12021.00
5.6.100.0030.10020.98
5.6.90.0030.10721.07
5.6.80.0170.11020.28
5.5.350.3930.04020.40
5.5.340.0100.15018.09
5.5.330.0070.10320.40
5.5.320.0330.10720.23
5.5.310.0430.10720.29
5.5.300.0070.10717.91
5.5.290.0000.16017.95
5.5.280.0070.15320.95
5.5.270.0130.16020.88
5.5.260.0130.15020.96
5.5.250.0130.13020.55
5.5.240.0030.17020.18
5.4.450.0230.05719.23
5.4.440.0130.04319.25
5.4.430.0170.03719.56
5.4.420.0330.06019.40
5.4.410.0130.04019.11
5.4.400.0170.04019.25
5.4.390.0270.07318.79
5.4.380.0130.06319.09
5.4.370.0330.05719.13
5.4.360.0200.03319.26
5.4.350.0300.05719.13
5.4.340.0130.04019.16
5.4.320.0130.04019.25
5.4.310.0100.04018.93
5.4.300.0170.03318.91
5.4.290.0170.04718.88
5.4.280.0170.08019.09
5.4.270.0230.03718.94
5.4.260.0170.04319.13
5.4.250.0200.05719.16
5.4.240.0300.03719.15
5.4.230.0230.04019.09
5.4.220.0200.07719.05
5.4.210.0170.08018.77
5.4.200.0070.06719.08
5.4.190.0230.07319.21
5.4.180.0200.06719.07
5.4.170.0200.07319.14
5.4.160.0200.04018.89
5.4.150.0270.07019.13
5.4.140.0270.04016.16
5.4.130.0170.04016.37
5.4.120.0230.04316.16
5.4.110.0170.05016.39
5.4.100.0230.07316.06
5.4.90.0170.05016.50
5.4.80.0270.06316.48
5.4.70.0200.03716.46
5.4.60.0170.03716.45
5.4.50.0270.06716.20
5.4.40.0270.04316.38
5.4.30.0270.04716.38
5.4.20.0230.03016.18
5.4.10.0200.07716.43
5.4.00.0230.05715.89
5.3.290.0100.04314.64
5.3.280.0330.05714.53
5.3.270.0170.06314.46
5.3.260.0200.06714.56
5.3.250.0170.05014.41
5.3.240.0200.07314.53
5.3.230.0270.04014.55
5.3.220.0270.05714.51
5.3.210.0130.04714.40
5.3.200.0170.05014.44
5.3.190.0330.06014.43
5.3.180.0330.04714.44
5.3.170.0270.05014.61
5.3.160.0270.06714.52
5.3.150.0230.06314.40
5.3.140.0270.06714.58
5.3.130.0500.02014.42
5.3.120.0270.03014.38
5.3.110.0270.07314.39
5.3.100.0270.05713.97
5.3.90.0330.06014.11
5.3.80.0200.04713.81
5.3.70.0170.04713.96
5.3.60.0170.07313.85
5.3.50.0270.05313.97
5.3.40.0300.04313.79
5.3.30.0200.04713.84
5.3.20.0130.04313.80
5.3.10.0270.04013.57
5.3.00.0270.06313.51
5.2.170.0170.04012.91
5.2.160.0130.05312.91
5.2.150.0200.04312.91
5.2.140.0170.03712.91
5.2.130.0200.05712.91
5.2.120.0130.03012.91
5.2.110.0230.04712.91
5.2.100.0230.05312.91
5.2.90.0270.05012.91
5.2.80.0170.04712.91
5.2.70.0200.05012.91
5.2.60.0170.06712.91
5.2.50.0200.04312.91
5.2.40.0130.03712.91
5.2.30.0130.03312.91
5.2.20.0170.02712.91
5.2.10.0170.06012.91
5.2.00.0130.04012.91
5.1.60.0200.02712.91
5.1.50.0230.04712.91
5.1.40.0170.05312.91
5.1.30.0230.05012.91
5.1.20.0130.04312.91
5.1.10.0200.04312.91
5.1.00.0170.03012.91
5.0.50.0000.03712.91
5.0.40.0100.03012.91
5.0.30.0070.04712.91
5.0.20.0070.02012.91
5.0.10.0030.03012.91
5.0.00.0130.05712.91
4.4.90.0070.03012.91
4.4.80.0070.03012.91
4.4.70.0070.02312.91
4.4.60.0070.02312.91
4.4.50.0100.02012.91
4.4.40.0100.05012.91
4.4.30.0070.04012.91
4.4.20.0100.02012.91
4.4.10.0130.02312.91
4.4.00.0070.03712.91
4.3.110.0100.02312.91
4.3.100.0070.02712.91
4.3.90.0100.03012.91
4.3.80.0030.04312.91
4.3.70.0130.02712.91
4.3.60.0030.03712.91
4.3.50.0130.02312.91
4.3.40.0000.05712.91
4.3.30.0100.03012.91
4.3.20.0030.02712.91
4.3.10.0030.04012.91
4.3.00.0030.03712.91

preferences:
29.15 ms | 401 KiB | 5 Q