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; echo $hash;

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.99416.57
7.3.00.0070.96116.34
7.2.130.0030.94716.98
7.2.120.0130.96016.84
7.2.110.0070.94016.88
7.2.100.0070.96116.79
7.2.90.0070.95216.88
7.2.80.0030.96816.64
7.2.70.0030.96716.76
7.2.60.0100.94916.80
7.2.50.0070.96316.64
7.2.40.0100.94316.63
7.2.30.0130.97116.79
7.2.20.0030.95616.64
7.2.10.0070.95416.85
7.2.00.0070.96418.02
7.1.250.0070.96115.87
7.1.70.0030.95917.16
7.1.60.0131.03417.20
7.1.50.0000.96917.02
7.1.40.0070.96416.62
7.1.30.0000.97216.68
7.1.20.0070.99516.74
7.1.10.0000.95616.53
7.1.00.0071.00916.73
7.0.200.0031.04616.92
7.0.190.0071.00316.85
7.0.180.0070.95516.32
7.0.170.0071.00516.27
7.0.160.0030.94916.30
7.0.150.0030.94816.34
7.0.140.0070.96316.45
7.0.130.0030.98416.41
7.0.120.0000.95216.84
7.0.110.0030.94216.50
7.0.100.0170.95616.45
7.0.90.0000.95716.36
7.0.80.0031.01316.52
7.0.70.0000.94916.39
7.0.60.0070.96216.20
7.0.50.0000.96416.68
7.0.40.0001.00014.67
7.0.30.0070.96414.67
7.0.20.0100.93614.67
7.0.10.0001.02214.67
7.0.00.0030.98914.67
5.6.300.0071.01420.67
5.6.290.0031.04920.87
5.6.280.0131.06420.97
5.6.270.0031.01421.03
5.6.260.0101.06520.89
5.6.250.0031.01420.97
5.6.240.0001.04820.90
5.6.230.0071.07320.95
5.6.220.0030.99720.90
5.6.210.0101.06020.59
5.6.200.0000.98220.73
5.6.190.0071.06621.02
5.6.180.0030.99820.79
5.6.170.0031.00020.73
5.6.160.0070.98420.96
5.6.150.0001.00320.98
5.6.140.0070.98620.82
5.6.130.0070.98820.98
5.6.120.0070.99520.81
5.6.110.2301.02820.81
5.6.100.0071.03220.85
5.6.90.0031.03720.91
5.6.80.0030.99420.24
5.6.70.0030.99920.36
5.6.60.0001.01420.34
5.6.50.0101.02020.17
5.6.40.0031.02020.39
5.6.30.0170.97520.38
5.6.20.0030.98320.28
5.6.10.0101.03620.21
5.6.00.0071.01420.15
5.5.380.0100.97817.46
5.5.370.0101.03817.45
5.5.360.0000.99617.63
5.5.350.0031.03817.45
5.5.340.0071.04318.07
5.5.330.0031.05017.70
5.5.320.0071.04618.09
5.5.310.0001.02817.83
5.5.300.0070.99318.09
5.5.290.0030.99717.94
5.5.280.0030.99817.95
5.5.270.0030.99518.02
5.5.260.0071.00017.96
5.5.250.0030.99517.77
5.5.240.0000.98517.45
5.5.230.0071.04417.21
5.5.220.0030.99717.36
5.5.210.0000.98617.43
5.5.200.0001.06117.21
5.5.190.0031.01117.05
5.5.180.0071.05417.09
5.5.160.0000.99217.40
5.5.150.0070.99417.46
5.5.140.0031.03317.31
5.5.130.0031.00517.45
5.5.120.0000.99317.32
5.5.110.0001.01117.40
5.5.100.0030.99417.34
5.5.90.0031.06917.30
5.5.80.0001.01217.34
5.5.70.0071.07617.10
5.5.60.0071.00717.30
5.5.50.0071.00717.29
5.5.40.0071.00317.21
5.5.30.0031.02117.34
5.5.20.0031.00417.09
5.5.10.0031.06917.10
5.5.00.0001.01617.10
5.4.450.0030.04319.21
5.4.440.0060.03519.21
5.4.430.0000.05419.30
5.4.420.0030.04119.33
5.4.410.0070.03719.24
5.4.400.0090.04119.04
5.4.390.0060.03519.02
5.4.380.0070.03518.86
5.4.370.0100.05518.98
5.4.360.0030.03919.01
5.4.350.0100.07019.05
5.4.340.0070.06418.83
5.4.320.0030.03818.89
5.4.310.0000.03918.86
5.4.300.0070.08419.03
5.4.290.0000.04019.14
5.4.280.0070.03419.09
5.4.270.0030.03818.88
5.4.260.0060.05719.06
5.4.250.0030.04719.07
5.4.240.0030.07318.98
5.4.230.0060.03818.85
5.4.220.0000.04519.00
5.4.210.0000.05918.88
5.4.200.0060.03719.09
5.4.190.0030.08619.16
5.4.180.0030.05419.04
5.4.170.0070.04119.04
5.4.160.0030.03819.15
5.4.150.0100.04619.18
5.4.140.0090.03516.65
5.4.130.0040.03516.38
5.4.120.0000.03716.64
5.4.110.0030.03616.69
5.4.100.0040.03916.42
5.4.90.0040.03616.36
5.4.80.0030.03616.68
5.4.70.0070.03316.40
5.4.60.0100.02916.67
5.4.50.0070.03416.33
5.4.40.0000.03916.45
5.4.30.0000.04016.60
5.4.20.0030.04016.44
5.4.10.0000.04016.55
5.4.00.0060.03216.11
5.3.290.0000.08014.77
5.3.280.0030.04114.67
5.3.270.0000.04614.75
5.3.260.0130.06814.78
5.3.250.0030.04714.67
5.3.240.0030.03714.71
5.3.230.0000.06814.74
5.3.220.0030.04314.70
5.3.210.0030.04114.70
5.3.200.0070.03614.67
5.3.190.0000.04214.71
5.3.180.0030.03814.71
5.3.170.0000.04314.71
5.3.160.0000.04114.68
5.3.150.0000.03914.80
5.3.140.0000.03914.67
5.3.130.0030.04014.69
5.3.120.0000.04714.70
5.3.110.0140.03514.67
5.3.100.0030.03514.67
5.3.90.0030.03414.67
5.3.80.0030.03314.67
5.3.70.0070.07414.67
5.3.60.0000.04414.67
5.3.50.0070.02914.67
5.3.40.0000.03914.67
5.3.30.0100.02914.67
5.3.20.0000.03614.67
5.3.10.0030.03214.67
5.3.00.0030.04114.67
5.2.170.0030.03214.67
5.2.160.0000.04214.67
5.2.150.0030.03214.67
5.2.140.0000.03114.67
5.2.130.0030.02814.67
5.2.120.0040.02914.67
5.2.110.0000.03614.67
5.2.100.0000.03014.67
5.2.90.0030.02814.67
5.2.80.0000.04014.67
5.2.70.0040.02914.67
5.2.60.0060.03914.67
5.2.50.0030.02814.67
5.2.40.0030.02814.67
5.2.30.0070.02514.67
5.2.20.0030.02814.67
5.2.10.0040.02614.67
5.2.00.0070.02714.67
5.1.60.0030.02314.67
5.1.50.0030.02414.67
5.1.40.0030.02314.67
5.1.30.0030.02514.67
5.1.20.0030.02414.67
5.1.10.0030.02314.67
5.1.00.0000.02714.67
5.0.50.0000.02214.67
5.0.40.0000.02214.67
5.0.30.0030.02814.67
5.0.20.0000.02114.67
5.0.10.0070.01714.67
5.0.00.0030.02814.67
4.4.90.0030.01714.67
4.4.80.0000.01914.67
4.4.70.0000.01714.67
4.4.60.0030.01314.67
4.4.50.0030.01614.67
4.4.40.0030.02314.67
4.4.30.0060.01214.67
4.4.20.0000.01714.67
4.4.10.0030.01314.67
4.4.00.0040.02514.67
4.3.110.0030.01514.67
4.3.100.0000.01814.67
4.3.90.0000.02014.67
4.3.80.0030.02214.67
4.3.70.0040.01214.67
4.3.60.0000.01514.67
4.3.50.0050.01614.67
4.3.40.0000.02614.67
4.3.30.0000.01714.67
4.3.20.0000.02014.67
4.3.10.0030.02014.67
4.3.00.0030.01614.67

preferences:
32.34 ms | 403 KiB | 5 Q