3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = microtime(TRUE); $password='123456'; $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.1.70.0600.95716.34
7.1.60.0531.01216.34
7.1.50.0370.96016.34
7.1.40.0600.95916.34
7.1.30.0440.96416.34
7.1.20.0670.95216.34
7.1.10.0640.96416.34
7.1.00.0100.96416.82
7.0.200.0430.97216.34
7.0.190.0630.95516.34
7.0.180.0730.95916.34
7.0.170.0470.95916.34
7.0.160.0600.94316.34
7.0.150.0500.96716.34
7.0.140.0100.94416.63
7.0.130.0100.97416.66
7.0.120.0030.99716.37
7.0.110.0000.95316.46
7.0.100.0130.94316.65
7.0.90.0070.95416.34
7.0.80.0130.95616.35
7.0.70.0130.95316.34
7.0.60.0600.98016.34
7.0.50.0130.94816.42
7.0.40.0130.94516.34
7.0.30.0100.95416.34
7.0.20.0000.96616.34
7.0.10.0030.96616.34
7.0.00.0070.96216.34
5.6.300.0031.04920.58
5.6.290.0070.99420.67
5.6.280.0031.00021.02
5.6.270.0071.01520.95
5.6.260.0031.00020.77
5.6.250.0071.11521.01
5.6.240.0071.00320.88
5.6.230.0131.01320.88
5.6.220.0130.99620.85
5.6.210.0101.00620.96
5.6.200.0071.03920.90
5.6.190.0071.00821.01
5.6.180.0100.98920.85
5.6.170.0170.97820.84
5.6.160.0171.01420.88
5.6.150.0071.01020.72
5.6.140.0001.04520.90
5.6.130.0100.98920.92
5.6.120.0100.99120.82
5.6.110.0071.00821.00
5.6.100.0131.06920.88
5.6.90.0030.99320.73
5.6.80.0030.99420.43
5.6.70.0100.98320.18
5.6.60.0101.01120.29
5.6.50.0100.99320.20
5.6.40.0031.00920.34
5.6.30.0100.99220.18
5.6.20.0030.99220.38
5.6.10.0100.99520.18
5.6.00.0130.98220.15
5.5.380.0070.98817.46
5.5.370.0031.02317.53
5.5.360.0100.99917.45
5.5.350.0130.99017.54
5.5.340.0101.01218.00
5.5.330.0031.01118.00
5.5.320.0070.99518.10
5.5.310.0030.99918.06
5.5.300.0001.01817.74
5.5.290.0070.98517.83
5.5.280.0201.00317.96
5.5.270.0030.99317.96
5.5.260.0101.01118.07
5.5.250.0031.00617.64
5.5.240.0071.00617.33
5.5.230.0071.00817.09
5.5.220.0071.01117.43
5.5.210.0001.01017.08
5.5.200.0101.02217.06
5.5.190.0001.00917.19
5.5.180.0031.02117.41
5.5.160.0070.99617.40
5.5.150.0100.99517.31
5.5.140.0100.99917.39
5.5.130.0071.05917.42
5.5.120.0071.01717.32
5.5.110.0031.05217.45
5.5.100.0001.01117.09
5.5.90.0031.01217.21
5.5.80.0071.00217.23
5.5.70.0131.01217.30
5.5.60.0001.00216.97
5.5.50.0100.99417.08
5.5.40.0031.02217.30
5.5.30.0100.98917.33
5.5.20.0131.01217.26
5.5.10.0070.99717.29
5.5.00.0130.99216.96
5.4.450.0100.04119.34
5.4.440.0100.03619.40
5.4.430.0120.03919.38
5.4.420.0120.03419.29
5.4.410.0090.03719.21
5.4.400.0030.04618.88
5.4.390.0060.03819.07
5.4.380.0100.05819.04
5.4.370.0130.04719.09
5.4.360.0130.03519.05
5.4.350.0090.03519.11
5.4.340.0490.03519.05
5.4.320.0000.04518.82
5.4.310.0030.04119.14
5.4.300.0070.04119.16
5.4.290.0070.04119.15
5.4.280.0130.03219.14
5.4.270.0030.04218.91
5.4.260.0060.03718.84
5.4.250.0070.04019.13
5.4.240.0030.04618.84
5.4.230.0030.05519.08
5.4.220.0030.04718.91
5.4.210.0240.04419.13
5.4.200.0150.03718.81
5.4.190.0060.04118.81
5.4.180.0070.06518.90
5.4.170.0120.03519.13
5.4.160.0140.06119.12
5.4.150.0070.04119.05
5.4.140.0210.02716.50
5.4.130.0040.05316.43
5.4.120.0030.03916.43
5.4.110.0060.04116.60
5.4.100.0030.04016.50
5.4.90.0070.03416.66
5.4.80.0040.03716.34
5.4.70.0030.05116.55
5.4.60.0070.03516.54
5.4.50.0100.03316.34
5.4.40.0060.03916.72
5.4.30.0090.03216.57
5.4.20.0070.03416.46
5.4.10.0090.03616.57
5.4.00.0130.03816.34
5.3.290.0030.04716.34
5.3.280.0070.03816.34
5.3.270.0140.03216.34
5.3.260.0000.05016.34
5.3.250.0040.04016.34
5.3.240.0130.03516.34
5.3.230.0000.05516.34
5.3.220.0070.03816.34
5.3.210.0070.03816.34
5.3.200.0030.04516.34
5.3.190.0030.04416.34
5.3.180.0130.02916.34
5.3.170.0030.03816.34
5.3.160.0040.04616.34
5.3.150.0090.03416.34
5.3.140.0100.03116.34
5.3.130.0030.04216.34
5.3.120.0030.04616.34
5.3.110.0300.03416.34
5.3.100.0090.03516.34
5.3.90.0100.03316.34
5.3.80.0040.04016.34
5.3.70.0060.04116.34
5.3.60.0100.05116.34
5.3.50.0100.04316.34
5.3.40.0030.03916.34
5.3.30.0030.06416.34
5.3.20.0070.03416.34
5.3.10.0030.03316.34
5.3.00.0000.07716.34
5.2.170.0000.03316.34
5.2.160.0060.02616.34
5.2.150.0030.03816.34
5.2.140.0000.03616.34
5.2.130.0030.03116.34
5.2.120.0070.02416.34
5.2.110.0030.02616.34
5.2.100.0030.03116.34
5.2.90.0070.02416.34
5.2.80.0030.03316.34
5.2.70.0000.03516.34
5.2.60.0030.03116.34
5.2.50.0000.03216.34
5.2.40.0040.03216.34
5.2.30.0040.03216.34
5.2.20.0040.02816.34
5.2.10.0090.02416.34
5.2.00.0030.03016.34
5.1.60.0000.02616.34
5.1.50.0060.02116.34
5.1.40.0030.02616.34
5.1.30.0000.03816.34
5.1.20.0070.02416.34
5.1.10.0000.03416.34
5.1.00.0000.02716.34
5.0.50.0000.02316.34
5.0.40.0030.02116.34
5.0.30.0100.03416.34
5.0.20.0000.02316.34
5.0.10.0000.02516.34
5.0.00.0030.03016.34
4.4.90.0040.01616.34
4.4.80.0040.01416.34
4.4.70.0000.02016.34
4.4.60.0030.01816.34
4.4.50.0000.01816.34
4.4.40.0000.02516.34
4.4.30.0000.01716.34
4.4.20.0000.01816.34
4.4.10.0110.01116.34
4.4.00.0030.02416.34
4.3.110.0030.01516.34
4.3.100.0000.01716.34
4.3.90.0000.01816.34
4.3.80.0100.03216.34
4.3.70.0000.01716.34
4.3.60.0030.01416.34
4.3.50.0030.02216.34
4.3.40.0030.03516.34
4.3.30.0040.01916.34
4.3.20.0000.01716.34
4.3.10.0000.01916.34
4.3.00.0000.02016.34

preferences:
34.31 ms | 401 KiB | 5 Q