3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = microtime(TRUE); $password='123456789'; $cost=13; $hash=password_hash($password, PASSWORD_DEFAULT, array('cost' => $cost)); password_verify($password,$hash); $endTime = microtime(TRUE); $time = $endTime - $startTime; echo $time;

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.0130.98816.23
7.4.00.0031.02516.39
7.3.130.0071.01816.21
7.3.120.0050.96415.53
7.3.110.0050.97715.50
7.3.100.0000.97515.62
7.3.90.0080.97115.37
7.3.80.0060.96615.59
7.3.70.0080.98215.40
7.3.60.0030.97015.45
7.3.50.0030.94715.36
7.3.40.0030.95815.55
7.3.30.0050.96815.43
7.3.20.0030.97517.38
7.3.10.0060.95816.90
7.3.00.0060.97517.09
7.2.260.0031.02416.65
7.2.250.0101.01416.55
7.2.240.0020.97015.76
7.2.230.0050.95615.62
7.2.220.0120.96615.76
7.2.210.0020.97115.77
7.2.200.0030.98015.61
7.2.190.0120.94815.70
7.2.180.0050.96615.86
7.2.170.0100.97615.52
7.2.160.0120.96215.76
7.2.150.0050.98317.56
7.2.140.0000.96317.60
7.2.130.0110.97417.15
7.2.120.0060.95317.13
7.2.110.0080.97817.40
7.2.100.0100.96317.15
7.2.90.0070.96217.30
7.2.80.0110.97417.33
7.2.70.0070.96317.24
7.2.60.0100.97117.18
7.2.50.0060.96917.16
7.2.40.0060.95817.34
7.2.30.0070.97517.34
7.2.20.0090.97117.15
7.2.10.0070.97017.09
7.2.00.0070.96817.39
7.1.330.0030.97016.62
7.1.320.0030.95916.69
7.1.310.0030.96816.79
7.1.300.0020.96916.45
7.1.290.0020.97316.44
7.1.280.0070.95216.52
7.1.270.0000.96116.48
7.1.260.0020.97616.59
7.1.250.0090.97316.22
7.1.240.0030.98017.49
7.1.230.0000.99317.24
7.1.220.0031.00117.44
7.1.210.0100.98117.41
7.1.200.0071.00017.28
7.1.190.0130.97717.29
7.1.180.0030.98717.29
7.1.170.0070.96917.23
7.1.160.0070.99517.35
7.1.150.0031.00217.45
7.1.140.0030.99717.37
7.1.130.0100.97717.45
7.1.120.0030.97317.33
7.1.110.0030.99917.53
7.1.100.0100.97617.30
7.1.90.0031.00417.45
7.1.80.0070.99717.37
7.1.70.0070.98517.52
7.1.60.0100.96417.32
7.1.50.0070.97117.33
7.1.40.0031.00117.27
7.1.30.0070.99817.43
7.1.20.0070.99917.27
7.1.10.0070.97317.37
7.1.00.0030.99017.45
7.0.330.0290.97417.18
7.0.320.0030.99516.92
7.0.310.0100.98717.18
7.0.300.0070.99817.05
7.0.290.0070.99217.04
7.0.280.0030.98516.88
7.0.270.0030.99817.02
7.0.260.0031.00017.14
7.0.250.0290.95517.12
7.0.240.0070.98017.20
7.0.230.0070.94816.95
7.0.220.0000.99317.11
7.0.210.0001.00217.18
7.0.200.0071.00217.00
7.0.190.0060.98917.00
7.0.180.0030.99217.08
7.0.170.0100.98317.17
7.0.160.0030.99417.08
7.0.150.0000.99517.15
7.0.140.0100.98917.00
7.0.130.0070.97217.04
7.0.120.0031.00017.01
7.0.110.0170.96117.11
7.0.100.0070.98817.05
7.0.90.0000.99017.11
7.0.80.0511.02315.13
7.0.70.0341.01015.24
7.0.60.0051.02615.04
7.0.50.0231.01515.28
7.0.40.0131.02314.07
7.0.30.0361.01314.14
7.0.20.0471.01014.22
7.0.10.0451.02914.22
7.0.00.0411.02214.34
5.6.400.0000.97915.80
5.6.390.0031.00015.77
5.6.380.0260.97215.98
5.6.370.0030.99915.77
5.6.360.0030.98816.09
5.6.350.0031.00515.97
5.6.340.0070.99715.57
5.6.330.0100.99115.72
5.6.320.0100.99015.58
5.6.310.0031.00015.93
5.6.300.0070.98915.59
5.6.290.0100.94515.93
5.6.280.0030.99815.93
5.6.270.0001.00115.73
5.6.260.0030.98615.92
5.6.250.0030.97515.82
5.6.240.0030.98515.90
5.6.230.0071.03015.00
5.6.220.0101.05814.91
5.6.210.0071.01414.96
5.6.200.0101.01314.95
5.6.190.0031.02914.82
5.6.180.0051.02015.08
5.6.170.0031.04115.13
5.6.160.0091.00714.97
5.6.150.0131.02015.02
5.6.140.0101.01214.99
5.6.130.0051.02515.06
5.6.120.0080.99915.03
5.6.110.0030.99915.11
5.6.100.0081.01914.75
5.6.90.0051.01815.04
5.6.80.0111.00315.05
5.6.70.0171.01214.61
5.6.60.0081.02414.97
5.6.50.0101.02015.12
5.6.40.0130.99714.76
5.6.30.0131.00214.71
5.6.20.0131.01214.75
5.6.10.0151.00014.90
5.6.00.0081.01714.89
5.5.370.0261.02111.05
5.5.360.0191.04611.09
5.5.350.0071.03211.25
5.5.340.0161.03210.99
5.5.330.0061.09311.27
5.5.320.0061.04311.32
5.5.310.0101.03011.21
5.5.300.0091.03410.79
5.5.290.0101.04110.90
5.5.280.0111.03010.91
5.5.270.0161.04610.89
5.5.260.0071.04210.61
5.5.250.0031.05110.83
5.5.240.0031.02710.90
5.5.230.0061.08110.80
5.5.220.0071.03410.66
5.5.210.0121.05810.79
5.5.200.0231.01810.88
5.5.190.0161.03710.84
5.5.180.0101.05410.89
5.5.170.0181.05113.86
5.5.160.0251.03510.44
5.5.150.0021.03910.70
5.5.140.0101.04210.55
5.5.130.0181.05210.48
5.5.120.0131.02710.85
5.5.110.0161.03610.76
5.5.100.0101.04410.45
5.5.90.0101.02611.02
5.5.80.0061.08611.00
5.5.70.0131.04410.77
5.5.60.0061.06010.92
5.5.50.0161.03310.45
5.5.40.0161.03910.79
5.5.30.0131.03611.05
5.5.20.0101.07011.16
5.5.10.0161.04110.70
5.5.00.0031.05310.82

preferences:
39.7 ms | 403 KiB | 5 Q