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' => 14, ]; echo password_hash("password", 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.3.10.0130.96416.09
7.3.00.0100.96016.07
7.2.130.0220.95916.71
7.2.120.0200.94416.29
7.2.110.0100.98116.29
7.2.100.0130.96316.45
7.2.90.0070.96616.18
7.2.80.0130.94816.31
7.2.70.0170.95616.45
7.2.60.0170.96316.08
7.2.50.0130.95516.27
7.2.40.0220.97516.70
7.2.30.0070.95016.15
7.2.20.0120.96916.51
7.2.10.0100.96816.19
7.2.00.0030.97817.88
7.1.250.0130.94615.38
7.1.200.0030.96915.40
7.1.100.0030.98717.87
7.1.70.0070.96116.85
7.1.60.0171.05219.32
7.1.50.0070.99916.89
7.1.00.0030.99722.34
7.0.200.0030.96516.37
7.0.140.0130.97021.95
7.0.60.0001.00319.92
7.0.50.0071.03717.84
7.0.40.0071.06020.29
7.0.30.0301.01320.07
7.0.20.0171.01720.03
7.0.10.0071.06320.21
7.0.00.0070.98320.07
5.6.280.0001.00020.81
5.6.210.0071.06320.50
5.6.200.0031.02018.29
5.6.190.0101.04020.41
5.6.180.0431.00720.63
5.6.170.0171.00020.48
5.6.160.0071.08020.54
5.6.150.0031.02018.21
5.6.140.0101.02318.16
5.6.130.0231.07018.18
5.6.120.0101.07320.84
5.6.110.0000.99721.10
5.6.100.0201.05321.01
5.6.90.0001.09021.00
5.6.80.0031.03720.36
5.5.350.0271.03320.31
5.5.340.0001.02017.97
5.5.330.0070.99020.23
5.5.320.0531.04720.30
5.5.310.0131.07020.30
5.5.300.0131.06017.91
5.5.290.0070.99717.96
5.5.280.0031.03720.68
5.5.270.0171.06720.86
5.5.260.0000.99020.74
5.5.250.0131.03720.68
5.5.240.0271.02320.23
5.4.450.0130.06019.47
5.4.440.1000.05719.54
5.4.430.0770.04319.10
5.4.420.0670.06319.51
5.4.410.0870.06318.97
5.4.400.1070.05319.13
5.4.390.0900.05319.12
5.4.380.0430.05018.63
5.4.370.0330.07318.46
5.4.360.0300.05018.72
5.4.350.0400.04318.61
5.4.340.0400.06018.68
5.4.320.0080.03612.45
5.4.310.0060.04712.45
5.4.300.0050.03712.45
5.4.290.0040.03812.45
5.4.280.0050.03512.35
5.4.270.0090.03312.34
5.4.260.0060.03612.34
5.4.250.0060.03712.34
5.4.240.0040.03712.35
5.4.230.0060.03712.34
5.4.220.0040.03912.34
5.4.210.0030.04112.34
5.4.200.0100.03212.34
5.4.190.0040.03612.33
5.4.180.0040.03712.34
5.4.170.0050.03512.35
5.4.160.0070.03412.34
5.4.150.0100.03112.33
5.4.140.0050.03712.02
5.4.130.0050.03512.01
5.4.120.0050.04211.96
5.4.110.0080.03711.96
5.4.100.0100.03011.96
5.4.90.0030.04011.96
5.4.80.0060.03811.96
5.4.70.0060.03411.96
5.4.60.0050.03811.96
5.4.50.0060.03411.96
5.4.40.0050.03511.95
5.4.30.0070.03411.95
5.4.20.0080.04311.95
5.4.10.0050.03411.94
5.4.00.0060.03811.44
5.3.290.0060.03912.80
5.3.280.0040.03912.71
5.3.270.0040.04012.73
5.3.260.0050.03912.72
5.3.250.0090.04012.71
5.3.240.0060.03712.71
5.3.230.0020.04112.71
5.3.220.0050.03812.68
5.3.210.0120.03412.68
5.3.200.0090.04012.68
5.3.190.0060.03612.68
5.3.180.0090.03212.67
5.3.170.0090.03312.67
5.3.160.0080.03512.67
5.3.150.0060.04412.67
5.3.140.0080.03712.66
5.3.130.0060.04212.66
5.3.120.0070.04012.66
5.3.110.0070.03912.66
5.3.100.0060.04012.12
5.3.90.0070.04212.08
5.3.80.0040.03712.07
5.3.70.0080.03712.08
5.3.60.0080.03812.07
5.3.50.0080.03812.00
5.3.40.0080.03412.00
5.3.30.0050.03511.95
5.3.20.0090.03111.72
5.3.10.0090.03111.70
5.3.00.0060.03611.68
5.2.170.0050.0309.18
5.2.160.0030.0309.18
5.2.150.0050.0299.18
5.2.140.0060.0289.18
5.2.130.0050.0319.14
5.2.120.0080.0319.14
5.2.110.0040.0319.15
5.2.100.0080.0309.14
5.2.90.0050.0319.14
5.2.80.0050.0329.14
5.2.70.0030.0389.14
5.2.60.0060.0329.09
5.2.50.0060.0359.05
5.2.40.0100.0239.04
5.2.30.0030.0319.01
5.2.20.0060.0379.00
5.2.10.0070.0328.92
5.2.00.0040.0298.78
5.1.60.0030.0248.07
5.1.50.0090.0248.06
5.1.40.0040.0298.05
5.1.30.0040.0268.40
5.1.20.0050.0268.41
5.1.10.0030.0268.14
5.1.00.0030.0268.14
5.0.50.0030.0206.63
5.0.40.0020.0206.48
5.0.30.0020.0346.30
5.0.20.0050.0176.27
5.0.10.0050.0236.23
5.0.00.0040.0326.23
4.4.90.0040.0144.78
4.4.80.0010.0164.75
4.4.70.0020.0164.75
4.4.60.0050.0154.75
4.4.50.0010.0174.77
4.4.40.0010.0274.71
4.4.30.0030.0154.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0070.0204.76
4.3.110.0030.0174.67
4.3.100.0030.0174.66
4.3.90.0040.0134.63
4.3.80.0040.0284.58
4.3.70.0030.0144.63
4.3.60.0040.0134.62
4.3.50.0020.0164.62
4.3.40.0010.0254.53
4.3.30.0040.0183.28
4.3.20.0020.0153.26
4.3.10.0020.0163.22
4.3.00.0000.0236.98

preferences:
34.29 ms | 401 KiB | 5 Q