3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randompassword ='thisismypassword'; $showpass = password_hash($randompassword, PASSWORD_BCRYPT); if (password_verify($randompassword, $showpass)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; }?>

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.0030.13914.86
7.3.120.0030.14214.72
7.3.110.0100.12814.65
7.3.100.0030.13414.76
7.3.90.0030.13514.96
7.3.80.0030.13214.63
7.3.70.0030.13714.57
7.3.60.0030.13014.67
7.3.50.0100.11814.60
7.3.40.0030.13214.74
7.3.30.0030.13114.73
7.3.20.0000.13716.62
7.3.10.0020.13116.51
7.3.00.0020.12616.46
7.2.250.0100.12915.06
7.2.240.0130.12814.95
7.2.230.0070.13714.95
7.2.220.0030.12914.82
7.2.210.0030.13115.14
7.2.200.0000.13414.87
7.2.190.0070.12814.84
7.2.180.0000.13914.86
7.2.170.0030.13215.13
7.2.130.0070.12616.91
7.2.120.0160.12116.80
7.2.110.0030.13116.90
7.2.100.0030.13216.80
7.2.90.0000.13417.05
7.2.80.0000.13016.98
7.2.70.0000.13617.01
7.2.60.0180.12416.52
7.2.50.0030.13317.04
7.2.40.0030.13316.88
7.2.30.0030.13016.88
7.2.20.0070.12816.75
7.2.10.0060.12816.74
7.2.00.0030.13218.17
7.1.330.0070.12815.75
7.1.320.0030.13015.84
7.1.310.0030.12715.84
7.1.300.0070.13015.54
7.1.290.0070.12815.71
7.1.280.0100.12415.62
7.1.270.0000.13315.59
7.1.260.0000.13015.62
7.1.250.0030.12915.68
7.1.200.0100.12015.67
7.1.100.0070.13218.06
7.1.70.0070.15917.07
7.1.60.0030.20519.40
7.1.50.0070.20516.87
7.1.00.0030.24022.38
7.0.200.0030.12814.93
7.0.140.0030.22021.96
7.0.60.0130.21719.92
7.0.50.0030.22017.66
7.0.40.0100.18319.90
7.0.30.0470.18020.20
7.0.20.0370.20720.11
7.0.10.0100.19320.09
7.0.00.0070.19020.24
5.6.280.0100.23021.06
5.6.210.0100.21720.69
5.6.200.0130.21718.22
5.6.190.0000.16320.47
5.6.180.0270.18720.60
5.6.170.0370.22020.62
5.6.160.0030.22320.55
5.6.150.0000.17018.14
5.6.140.0070.18018.21
5.6.130.0100.16018.21
5.6.120.0070.16721.14
5.6.110.0000.19720.98
5.6.100.0030.21020.98
5.6.90.0000.23021.00
5.6.80.0130.16020.38
5.5.350.0270.18720.46
5.5.340.0030.20018.07
5.5.330.0070.19720.38
5.5.320.0370.16320.41
5.5.310.0230.19720.29
5.5.300.0030.17017.98
5.5.290.0030.18318.01
5.5.280.0000.16720.68
5.5.270.0070.21020.93
5.5.260.0070.21020.96
5.5.250.0070.21320.46
5.5.240.0230.22020.36
5.4.450.1030.03719.57
5.4.440.0770.04019.24
5.4.430.0470.03019.23
5.4.420.0570.03719.09
5.4.410.0370.04319.30
5.4.400.0470.04018.81
5.4.390.0330.04719.06
5.4.380.0270.06718.68
5.4.370.0470.04318.62
5.4.360.0430.04718.63
5.4.350.0470.06718.50
5.4.340.0200.07318.59
5.4.320.0060.03512.45
5.4.310.0060.03912.45
5.4.300.0050.03712.45
5.4.290.0080.03712.45
5.4.280.0080.03312.34
5.4.270.0050.03612.35
5.4.260.0050.03712.34
5.4.250.0070.04212.34
5.4.240.0060.03712.35
5.4.230.0070.04412.34
5.4.220.0040.03612.34
5.4.210.0090.03812.34
5.4.200.0080.04312.34
5.4.190.0060.03812.33
5.4.180.0050.03612.34
5.4.170.0080.03712.35
5.4.160.0090.03312.34
5.4.150.0020.04012.34
5.4.140.0050.04412.02
5.4.130.0050.04212.01
5.4.120.0070.03311.97
5.4.110.0060.03511.96
5.4.100.0110.03411.96
5.4.90.0050.03711.96
5.4.80.0050.03811.96
5.4.70.0070.03411.96
5.4.60.0050.03511.96
5.4.50.0080.03711.96
5.4.40.0060.03911.95
5.4.30.0060.03911.95
5.4.20.0020.03811.95
5.4.10.0030.03811.95
5.4.00.0040.03611.44
5.3.290.0090.04312.80
5.3.280.0100.04612.71
5.3.270.0060.04012.72
5.3.260.0080.04212.72
5.3.250.0070.03512.72
5.3.240.0080.03512.71
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0050.03912.68
5.3.200.0090.03312.68
5.3.190.0110.03212.68
5.3.180.0020.04012.68
5.3.170.0070.03512.67
5.3.160.0060.04212.67
5.3.150.0060.04512.67
5.3.140.0060.04112.66
5.3.130.0050.04312.66
5.3.120.0060.03712.66
5.3.110.0110.03312.66
5.3.100.0060.04112.12
5.3.90.0020.04312.09
5.3.80.0040.03912.08
5.3.70.0060.03912.07
5.3.60.0060.03612.06
5.3.50.0040.03712.00
5.3.40.0080.04012.00
5.3.30.0050.03911.94
5.3.20.0060.03711.72
5.3.10.0100.03811.69
5.3.00.0040.03811.68
5.2.170.0070.0329.18
5.2.160.0060.0339.18
5.2.150.0040.0329.18
5.2.140.0060.0289.18
5.2.130.0070.0289.14
5.2.120.0040.0359.14
5.2.110.0090.0259.15
5.2.100.0060.0279.14
5.2.90.0030.0309.14
5.2.80.0060.0289.14
5.2.70.0060.0289.14
5.2.60.0030.0319.09
5.2.50.0040.0299.06
5.2.40.0040.0309.04
5.2.30.0040.0309.02
5.2.20.0040.0299.00
5.2.10.0020.0298.92
5.2.00.0040.0298.78
5.1.60.0020.0268.06
5.1.50.0060.0228.06
5.1.40.0050.0238.05
5.1.30.0030.0298.39
5.1.20.0000.0308.41
5.1.10.0090.0268.14
5.1.00.0030.0268.14
5.0.50.0020.0216.62
5.0.40.0050.0246.47
5.0.30.0020.0326.29
5.0.20.0050.0196.26
5.0.10.0060.0176.24
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0030.0144.76
4.4.70.0020.0154.75
4.4.60.0030.0144.76
4.4.50.0020.0154.77
4.4.40.0040.0244.71
4.4.30.0050.0134.76
4.4.20.0040.0144.85
4.4.10.0030.0154.84
4.4.00.0010.0274.76
4.3.110.0080.0104.67
4.3.100.0020.0154.66
4.3.90.0030.0204.64
4.3.80.0010.0324.59
4.3.70.0000.0234.63
4.3.60.0060.0114.62
4.3.50.0060.0124.63
4.3.40.0010.0244.54
4.3.30.0010.0233.28
4.3.20.0020.0203.25
4.3.10.0010.0163.22
4.3.00.0070.01716.02

preferences:
34.66 ms | 400 KiB | 5 Q