3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = microtime(TRUE); $password='test'; $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.3.10.0030.95916.26
7.3.00.0130.95816.69
7.2.130.0070.96116.75
7.2.120.0130.95016.63
7.2.110.0000.95416.51
7.2.100.0030.95516.74
7.2.90.0130.96116.89
7.2.80.0030.95116.70
7.2.70.0030.96416.93
7.2.60.0100.96416.66
7.2.50.0070.96416.79
7.2.40.0030.94916.86
7.2.30.0260.96217.00
7.2.20.0030.94916.65
7.2.10.0000.97316.71
7.2.00.0070.96117.93
7.1.250.0070.95015.51
7.1.70.0000.97517.38
7.1.60.0071.04119.25
7.1.50.0131.02616.77
7.1.00.0130.98022.33
7.0.200.0600.96414.48
7.0.50.0131.33320.33
7.0.40.0131.36020.25
7.0.30.0101.33320.34
7.0.20.0071.34720.44
7.0.10.0331.32320.40
7.0.00.0271.34020.40
5.6.280.0100.98720.98
5.6.200.0101.33720.95
5.6.190.0171.34721.21
5.6.180.0071.34021.03
5.6.170.0401.32321.05
5.6.160.0231.34321.03
5.6.150.0131.33021.12
5.6.140.0171.27021.15
5.6.130.0231.32321.00
5.6.120.0201.33721.04
5.6.110.0201.34321.01
5.6.100.0171.33021.16
5.6.90.0131.35021.13
5.6.80.0331.31320.43
5.6.70.0131.32320.49
5.6.60.0231.20720.57
5.6.50.0101.32320.54
5.6.40.0101.14020.50
5.6.30.0131.10020.43
5.6.20.0101.25020.54
5.6.10.0231.32720.42
5.6.00.0301.21720.39
5.5.340.0331.32320.86
5.5.330.0231.34720.99
5.5.320.0101.33021.00
5.5.310.0301.32320.86
5.5.300.0101.33320.86
5.5.290.0301.32720.74
5.5.280.0231.33720.85
5.5.270.0201.33720.70
5.5.260.0131.33320.73
5.5.250.0201.33720.85
5.5.240.0201.32020.22
5.5.230.0071.34020.32
5.5.220.0271.31720.33
5.5.210.0131.32720.14
5.5.200.0231.32020.09
5.5.190.0201.33020.11
5.5.180.0101.32720.39
5.5.160.0101.30720.36
5.5.150.0131.19320.08
5.5.140.0131.19320.21
5.5.130.0301.31320.18
5.5.120.0231.35020.20
5.5.110.0071.29320.30
5.5.100.0331.31320.27
5.5.90.0431.30320.06
5.5.80.0271.31720.10
5.5.70.0331.31020.15
5.5.60.0101.33020.11
5.5.50.0331.31320.21
5.5.40.0071.24720.14
5.5.30.0200.92320.06
5.5.20.0431.00320.08
5.5.10.0371.19720.04
5.5.00.0201.33320.04

preferences:
31.06 ms | 401 KiB | 5 Q