3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo $password; $hashToStoreInDb = password_hash($password, PASSWORD_BCRYPT); echo $hashToStoreInDb; $isPasswordCorrect = password_verify($password, $existingHashFromDb); echo $isPasswordCorrect; ?>

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.10.0000.08214.81
7.4.00.0130.06815.16
7.3.130.0070.07014.82
7.3.120.0070.07515.07
7.3.110.0030.08014.68
7.3.100.0100.06814.68
7.3.90.0030.07414.62
7.3.80.0100.06514.92
7.3.70.0030.06514.95
7.3.60.0070.06714.78
7.3.50.0000.07214.79
7.3.40.0000.07414.60
7.3.30.0030.06814.79
7.3.20.0070.06816.73
7.3.10.0040.06816.67
7.3.00.0020.07316.62
7.2.260.0070.07715.18
7.2.250.0030.07815.00
7.2.240.0070.06615.00
7.2.230.0070.07414.73
7.2.220.0100.06714.76
7.2.210.0070.06715.18
7.2.200.0070.06914.73
7.2.190.0100.06815.21
7.2.180.0070.06915.10
7.2.170.0100.06515.09
7.2.160.0030.07115.00
7.2.150.0030.06817.01
7.2.140.0030.07116.94
7.2.130.0010.07316.81
7.2.120.0040.07116.72
7.2.110.0050.07116.85
7.2.100.0050.07016.77
7.2.90.0070.06716.82
7.2.80.0030.06916.93
7.2.70.0070.07016.95
7.2.60.0070.07016.91
7.2.50.0070.06516.97
7.2.40.0060.06617.03
7.2.30.0080.06916.87
7.2.20.0040.07216.91
7.2.10.0040.07016.92
7.2.00.0060.07017.47
7.1.330.0000.07715.97
7.1.320.0060.07115.89
7.1.310.0000.07515.79
7.1.300.0070.07215.78
7.1.290.0100.06515.59
7.1.280.0100.06115.56
7.1.270.0070.07015.60
7.1.260.0060.06815.72
7.1.250.0020.07115.82
7.1.240.0000.07316.00
7.1.230.0030.07215.99
7.1.220.0070.06715.54
7.1.210.0030.06915.87
7.1.200.0060.06815.67
7.1.190.0100.06515.69
7.1.180.0070.07116.03
7.1.170.0070.06915.82
7.1.160.0030.06815.92
7.1.150.0030.07015.88
7.1.140.0070.06315.94
7.1.130.0030.07415.94
7.1.120.0030.07215.83
7.1.110.0030.07015.94
7.1.100.0050.07517.04
7.1.90.0000.07715.93
7.1.80.0030.07215.79
7.1.70.0070.06516.49
7.1.60.0050.09617.69
7.1.50.0070.08316.43
7.1.40.0000.07316.02
7.1.30.0100.06615.80
7.1.20.0030.07215.51
7.1.10.0070.06715.61
7.1.00.0050.11719.17
7.0.330.0030.07415.44
7.0.320.0130.06615.55
7.0.310.0030.06915.33
7.0.300.0000.07815.34
7.0.290.0030.07515.49
7.0.280.0030.06715.34
7.0.270.0030.07215.46
7.0.260.0130.06415.43
7.0.250.0000.07315.52
7.0.240.0060.06415.50
7.0.230.0160.05915.41
7.0.220.0130.06115.70
7.0.210.0030.06815.43
7.0.200.0020.06615.97
7.0.190.0070.06415.47
7.0.180.0030.06915.50
7.0.170.0070.07115.56
7.0.160.0030.07015.48
7.0.150.0030.06915.53
7.0.140.0070.11118.80
7.0.130.0100.06815.29
7.0.120.0030.07115.45
7.0.110.0030.06915.31
7.0.100.0070.06715.62
7.0.90.0100.06715.54
7.0.80.0070.07015.56
7.0.70.0030.06915.38
7.0.60.0020.10717.74
7.0.50.0080.09916.65
7.0.40.0080.10016.85
7.0.30.0130.08916.73
7.0.20.0070.08716.76
7.0.10.0080.09416.93
7.0.00.0170.10516.83
5.6.400.0100.06514.24
5.6.390.0100.06514.68
5.6.380.0030.07014.45
5.6.370.0030.07514.33
5.6.360.0030.07414.32
5.6.350.0100.06614.46
5.6.340.0070.06914.31
5.6.330.0000.07813.97
5.6.320.0030.07414.32
5.6.310.0100.06014.25
5.6.300.0030.07214.47
5.6.290.0070.06714.29
5.6.280.0000.12617.70
5.6.270.0030.06914.41
5.6.260.0030.07514.59
5.6.250.0070.06314.38
5.6.240.0030.07214.25
5.6.230.0000.07414.33
5.6.220.0100.06214.21
5.6.210.0080.07917.52
5.6.200.0080.11016.21
5.6.190.0030.08917.49
5.6.180.0180.09017.42
5.6.170.0150.11017.63
5.6.160.0020.11617.45
5.6.150.0080.10216.19
5.6.140.0070.10916.26
5.6.130.0020.11616.28
5.6.120.0130.10517.73
5.6.110.0120.09617.60
5.6.100.0130.10817.64
5.6.90.0120.11517.63
5.6.80.0120.09117.26
5.6.70.0070.06714.23
5.6.60.0100.06214.23
5.6.50.0070.06614.03
5.6.40.0000.07214.30
5.6.30.0100.06614.14
5.6.20.0130.06514.34
5.6.10.0030.07414.32
5.6.00.0000.07514.22
5.5.380.0030.07414.42
5.5.370.0030.07014.19
5.5.360.0030.07014.25
5.5.350.0220.10317.38
5.5.340.0150.10215.99
5.5.330.0030.08917.30
5.5.320.0100.11217.24
5.5.310.0220.10617.34
5.5.300.0080.11316.24
5.5.290.0050.12216.13
5.5.280.0050.11417.39
5.5.270.0070.11217.48
5.5.260.0050.11417.52
5.5.250.0070.09017.48
5.5.240.0080.11417.16
5.5.230.0030.06914.16
5.5.220.0000.07214.16
5.5.210.0030.06814.34
5.5.200.0030.07113.88
5.5.190.0100.06414.19
5.5.180.0030.06813.95
5.5.170.0070.06213.74
5.5.160.0000.07314.21
5.5.150.0000.07514.23
5.5.140.0030.07214.25
5.5.130.0070.07113.82
5.5.120.0000.07813.79
5.5.110.0030.07114.18
5.5.100.0070.07013.94
5.5.90.0000.07114.18
5.5.80.0030.06814.33
5.5.70.0000.06814.16
5.5.60.0070.06713.95
5.5.50.0070.06914.07
5.5.40.0100.06714.31
5.5.30.0070.06414.09
5.5.20.0070.06513.78
5.5.10.0000.07414.45
5.5.00.0030.07214.35
5.4.450.0170.03515.88
5.4.440.0080.03515.89
5.4.430.0170.02915.85
5.4.420.0140.02515.68
5.4.410.0130.02815.87
5.4.400.0110.02915.65
5.4.390.0130.02915.76
5.4.380.0130.02615.48
5.4.370.0090.02915.51
5.4.360.0080.02615.48
5.4.350.0110.02515.43
5.4.340.0080.03015.40
5.4.330.0040.00412.24
5.4.320.0060.01912.34
5.4.310.0030.03112.34
5.4.300.0040.02912.35
5.4.290.0030.03012.33
5.4.280.0050.02012.29
5.4.270.0050.02312.29
5.4.260.0060.02312.29
5.4.250.0070.02612.28
5.4.240.0060.03012.29
5.4.230.0080.02912.28
5.4.220.0100.03212.28
5.4.210.0080.02512.28
5.4.200.0040.03012.28
5.4.190.0060.02812.28
5.4.180.0020.02412.28
5.4.170.0080.01912.29
5.4.160.0080.02012.28
5.4.150.0050.02812.28
5.4.140.0040.02812.12
5.4.130.0040.02512.12
5.4.120.0060.02412.10
5.4.110.0050.03012.09
5.4.100.0090.02512.10
5.4.90.0060.03212.09
5.4.80.0090.02412.09
5.4.70.0050.02712.09
5.4.60.0040.03012.09
5.4.50.0090.03712.09
5.4.40.0050.03012.09
5.4.30.0020.03212.08
5.4.20.0090.03412.09
5.4.10.0030.02612.08
5.4.00.0040.02111.83
5.3.290.0070.02012.52
5.3.280.0090.01912.47
5.3.270.0050.03012.48
5.3.260.0080.03212.48
5.3.250.0040.02412.48
5.3.240.0030.02712.48
5.3.230.0090.04812.47
5.3.220.0040.03212.46
5.3.210.0080.02612.46
5.3.200.0050.02412.46
5.3.190.0050.02712.46
5.3.180.0060.02712.46
5.3.170.0090.04112.46
5.3.160.0050.03112.46
5.3.150.0090.04112.46
5.3.140.0090.02612.45
5.3.130.0080.03312.45
5.3.120.0050.04412.45
5.3.110.0130.03112.45
5.3.100.0070.02412.18
5.3.90.0070.02212.16
5.3.80.0050.02112.16
5.3.70.0060.02312.16
5.3.60.0070.01812.15
5.3.50.0040.02412.12
5.3.40.0040.02212.12
5.3.30.0090.04012.09
5.3.20.0030.02311.98
5.3.10.0030.02111.97
5.3.00.0080.01911.96
5.2.170.0050.0329.18
5.2.160.0050.0319.18
5.2.150.0070.0309.18
5.2.140.0040.0329.18
5.2.130.0050.0449.14
5.2.120.0040.0349.13
5.2.110.0110.0849.14
5.2.100.0090.0599.14
5.2.90.0080.0389.14
5.2.80.0170.0739.14
5.2.70.0130.0889.14
5.2.60.0070.0339.09
5.2.50.0040.0379.05
5.2.40.0100.0549.04
5.2.30.0140.0369.01
5.2.20.0090.0549.00
5.2.10.0060.0278.92
5.2.00.0040.0318.78
5.1.60.0060.0248.07
5.1.50.0060.0378.06
5.1.40.0080.0368.05
5.1.30.0080.0348.39
5.1.20.0070.0358.42
5.1.10.0060.0318.14
5.1.00.0060.0308.14
5.0.50.0040.0316.62
5.0.40.0060.0326.48
5.0.30.0040.0336.29
5.0.20.0060.0216.26
5.0.10.0040.0256.24
5.0.00.0050.0386.23
4.4.90.0060.0234.78
4.4.80.0090.0264.75
4.4.70.0020.0274.75
4.4.60.0060.0224.75
4.4.50.0060.0224.77
4.4.40.0070.0584.71
4.4.30.0050.0224.76
4.4.20.0030.0254.85
4.4.10.0070.0204.85
4.4.00.0080.0654.76
4.3.110.0220.0564.67
4.3.100.0090.0424.67
4.3.90.0080.0284.63
4.3.80.0160.0624.58
4.3.70.0050.0534.63
4.3.60.0070.0254.62
4.3.50.0090.0414.63
4.3.40.0040.0464.54
4.3.30.0030.0193.28
4.3.20.0060.0303.26
4.3.10.0060.0393.22
4.3.00.0100.0206.93

preferences:
35.63 ms | 400 KiB | 5 Q