3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo password_hash('topSecret', PASSWORD_DEFAULT, ['cost'=>20]);

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.00.0102.49119.23
7.1.100.0002.50117.49
7.1.70.0002.50116.72
7.1.60.0032.49817.19
7.1.50.0072.49516.89
7.1.00.0032.49722.22
7.0.200.0072.49416.62
7.0.140.0002.50022.07
7.0.60.0032.49719.92
7.0.50.0072.49317.58
7.0.40.0102.47019.94
7.0.30.0572.44319.72
7.0.20.0332.46719.88
7.0.10.0132.48719.71
7.0.00.0072.49319.84
5.6.280.0032.49721.02
5.6.210.0032.49720.46
5.6.200.0072.49318.14
5.6.190.0202.48020.38
5.6.180.0502.45020.39
5.6.170.0272.47320.35
5.6.160.0102.49020.29
5.6.150.0032.49718.23
5.6.140.0002.50018.06
5.6.130.0032.46018.12
5.6.120.0102.49020.94
5.6.110.0132.48720.95
5.6.100.0132.48720.97
5.6.90.0102.49021.09
5.6.80.0072.49320.36
5.5.350.0132.48720.43
5.5.340.0072.49317.93
5.5.330.0072.49320.10
5.5.320.0332.46719.96
5.5.310.0202.48020.11
5.5.300.0032.49718.03
5.5.290.0032.48017.72
5.5.280.0032.48020.79
5.5.270.0002.47720.79
5.5.260.0002.50020.67
5.5.250.0032.49720.49
5.5.240.0172.48320.15
5.4.450.0370.04019.41
5.4.440.1330.06019.63
5.4.430.1130.05719.52
5.4.420.0630.00019.34
5.4.410.0630.00019.19
5.4.400.0600.00019.38
5.4.390.0630.00018.95
5.4.380.0630.00019.26
5.4.370.0630.00019.14
5.4.360.0600.00019.11
5.4.350.0670.00019.07
5.4.340.0670.00018.96
5.4.320.0050.03712.45
5.4.310.0080.03712.45
5.4.300.0080.03712.45
5.4.290.0060.04012.45
5.4.280.0070.03512.34
5.4.270.0070.03612.35
5.4.260.0060.03812.35
5.4.250.0050.04012.35
5.4.240.0060.03612.34
5.4.230.0090.04112.34
5.4.220.0030.03812.34
5.4.210.0030.03812.34
5.4.200.0070.03612.34
5.4.190.0070.03912.34
5.4.180.0070.03812.34
5.4.170.0040.03912.34
5.4.160.0040.03812.34
5.4.150.0090.04212.34
5.4.140.0060.04612.02
5.4.130.0090.03212.01
5.4.120.0060.03511.96
5.4.110.0060.03511.96
5.4.100.0050.03611.96
5.4.90.0080.03511.96
5.4.80.0100.03611.96
5.4.70.0080.03211.96
5.4.60.0050.03511.96
5.4.50.0060.03711.96
5.4.40.0080.03211.95
5.4.30.0060.03911.95
5.4.20.0100.04611.94
5.4.10.0060.03411.95
5.4.00.0030.03811.44
5.3.290.0090.04112.80
5.3.280.0070.03612.71
5.3.270.0080.04012.72
5.3.260.0080.05412.72
5.3.250.0080.03812.72
5.3.240.0080.03612.72
5.3.230.0090.04712.71
5.3.220.0040.03912.68
5.3.210.0050.03912.68
5.3.200.0060.03812.68
5.3.190.0070.03712.68
5.3.180.0070.04112.68
5.3.170.0070.03912.67
5.3.160.0040.04412.67
5.3.150.0060.03912.67
5.3.140.0110.04912.66
5.3.130.0060.04912.66
5.3.120.0080.03912.66
5.3.110.0090.03512.66
5.3.100.0060.04312.12
5.3.90.0060.04112.09
5.3.80.0050.04212.07
5.3.70.0050.03712.07
5.3.60.0080.03612.07
5.3.50.0050.04412.00
5.3.40.0060.04112.00
5.3.30.0060.03911.95
5.3.20.0060.03811.73
5.3.10.0080.03711.70
5.3.00.0080.04111.68
5.2.170.0050.0399.18
5.2.160.0080.0289.18
5.2.150.0060.0309.18
5.2.140.0060.0339.18
5.2.130.0050.0299.14
5.2.120.0080.0359.14
5.2.110.0050.0299.14
5.2.100.0060.0279.14
5.2.90.0060.0359.14
5.2.80.0060.0309.14
5.2.70.0030.0329.13
5.2.60.0060.0409.09
5.2.50.0060.0289.06
5.2.40.0050.0349.04
5.2.30.0050.0309.01
5.2.20.0030.0309.00
5.2.10.0060.0278.93
5.2.00.0060.0298.78
5.1.60.0030.0258.06
5.1.50.0040.0248.06
5.1.40.0050.0238.05
5.1.30.0050.0268.40
5.1.20.0030.0308.42
5.1.10.0020.0288.14
5.1.00.0060.0278.14
5.0.50.0040.0216.63
5.0.40.0040.0196.48
5.0.30.0000.0376.29
5.0.20.0060.0186.27
5.0.10.0030.0216.24
5.0.00.0030.0316.23
4.4.90.0040.0144.78
4.4.80.0010.0174.76
4.4.70.0040.0154.75
4.4.60.0030.0154.75
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0020.0154.63
4.3.80.0020.0254.59
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0040.0174.63
4.3.40.0040.0234.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0040.0143.22
4.3.00.0270.03316.50

preferences:
34.61 ms | 401 KiB | 5 Q