3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); $options['cost'] = 14; for($i=0;$i<1;$i++) { $p = password_hash('tototititata', PASSWORD_BCRYPT, $options); } echo'<hr>'; echo round(chrono()-$debut,10);

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.0070.97616.75
7.3.00.0070.96816.40
7.2.130.0000.95216.93
7.2.120.0100.96416.75
7.2.110.0070.96816.89
7.2.100.0100.94217.07
7.2.90.0070.95217.09
7.2.80.0030.95916.74
7.2.70.0100.94216.91
7.2.60.0170.94917.08
7.2.50.0070.95817.02
7.2.40.0030.94116.95
7.2.30.0130.94217.02
7.2.20.0070.95916.89
7.2.10.0030.98116.79
7.2.00.0130.95918.20
7.1.250.0030.96315.61
7.1.70.0030.96317.24
7.1.60.0071.01819.40
7.1.50.0031.03316.93
7.1.00.0000.89322.30
7.0.200.0000.96116.63
7.0.140.0100.97322.04
7.0.80.0030.83019.88
7.0.70.0900.83719.92
7.0.60.0131.02020.09
7.0.50.0171.05320.18
7.0.40.0130.99020.01
7.0.30.0031.09720.14
7.0.20.0131.12720.11
7.0.10.0101.04020.14
7.0.00.0231.03720.07
5.6.280.0030.99720.91
5.6.230.0000.83020.63
5.6.220.0030.90720.61
5.6.210.0171.07720.77
5.6.200.0071.02320.94
5.6.190.0070.86020.96
5.6.180.0070.85721.10
5.6.170.0000.86720.96
5.6.160.0030.96721.01
5.6.150.0131.08021.09
5.6.140.0171.05321.17
5.6.130.0770.92321.08
5.6.120.0101.00020.95
5.6.110.0030.84020.95
5.6.100.0131.07721.16
5.6.90.0071.04721.07
5.6.80.0070.87320.41
5.6.70.0030.99020.43
5.6.60.0100.87320.41
5.6.50.0030.90320.44
5.6.40.0000.84020.42
5.6.30.0000.89720.41
5.6.20.0070.94320.46
5.6.10.0070.89020.39
5.6.00.0770.84720.36
5.5.370.0030.95020.36
5.5.360.0031.06720.36
5.5.350.0000.88320.43
5.5.340.0071.06720.87
5.5.330.0071.04320.80
5.5.320.0031.04020.88
5.5.310.0131.08320.92
5.5.300.0170.87720.73
5.5.290.0131.01320.80
5.5.280.0131.06320.89
5.5.270.0131.01720.88
5.5.260.0031.03020.62
5.5.250.0101.01720.62
5.5.240.0700.88320.23
5.5.230.0070.98020.21
5.5.220.0000.86020.21
5.5.210.0070.97020.02
5.5.200.0001.05020.24
5.5.190.0000.92720.24
5.5.180.0070.89320.22
5.5.160.0071.01020.27
5.5.150.0070.90720.25
5.5.140.0101.03720.28
5.5.130.0670.85320.27
5.5.120.0070.90020.17
5.5.110.0101.08020.14
5.5.100.0171.07720.16
5.5.90.0031.00320.10
5.5.80.0071.06020.10
5.5.70.0001.04020.06
5.5.60.0170.95320.00
5.5.50.0201.03720.10
5.5.40.0070.87320.06
5.5.30.0030.98019.94
5.5.20.0031.04020.04
5.5.10.0001.06020.04
5.5.00.0131.03320.03
5.4.450.0130.07319.36
5.4.440.0100.07319.46
5.4.430.0130.07719.35
5.4.420.0130.07019.32
5.4.410.0070.06719.23
5.4.400.0000.05719.05
5.4.390.0100.07319.04
5.4.380.0000.08018.88
5.4.370.0070.03319.20
5.4.360.0000.04019.18
5.4.350.0100.02719.20
5.4.340.0030.03719.13
5.4.320.0000.04719.03
5.4.310.0000.04318.88
5.4.300.0130.06719.16
5.4.290.0000.04718.87
5.4.280.0100.07719.04
5.4.270.0100.07318.85
5.4.260.0030.06319.04
5.4.250.0070.07018.94
5.4.240.0070.07319.20
5.4.230.0030.07719.12
5.4.220.0170.07319.04
5.4.210.0130.06718.89
5.4.200.0030.06319.13
5.4.190.0070.08019.15
5.4.180.0070.08019.03
5.4.170.0100.06719.22
5.4.160.0100.05719.02
5.4.150.0070.07319.03
5.4.140.0030.06316.45
5.4.130.0000.05316.44
5.4.120.0000.05316.18
5.4.110.0030.07316.51
5.4.100.0070.04716.50
5.4.90.0070.06316.50
5.4.80.0100.04016.37
5.4.70.0070.07316.37
5.4.60.0030.07316.46
5.4.50.0030.04716.30
5.4.40.0070.03316.53
5.4.30.0170.06716.29
5.4.20.0030.08016.39
5.4.10.0030.05316.35
5.4.00.0070.04715.90
5.3.290.0030.06314.64
5.3.280.0030.08014.60
5.3.270.0100.07314.72
5.3.260.0030.05714.66
5.3.250.0030.03314.54
5.3.240.0000.08014.64
5.3.230.0000.08014.63
5.3.220.0100.04014.57
5.3.210.0070.06714.59
5.3.200.0030.06714.57
5.3.190.0130.06314.54
5.3.180.0100.04714.61
5.3.170.0100.03014.49
5.3.160.0100.07014.55
5.3.150.0100.06314.66
5.3.140.0100.03314.54
5.3.130.0070.07314.61
5.3.120.0070.07314.54
5.3.110.0070.07714.64
5.3.100.0070.07013.96
5.3.90.0070.04314.04
5.3.80.0070.03713.99
5.3.70.0000.04314.01
5.3.60.0070.04014.02
5.3.50.0070.03314.01
5.3.40.0100.06713.85
5.3.30.0070.07713.83
5.3.20.0070.05713.84
5.3.10.0100.04713.76
5.3.00.0030.07313.77
5.2.170.0030.03011.65
5.2.160.0130.05311.65
5.2.150.0130.02711.65
5.2.140.0070.06011.65
5.2.130.0100.05711.65
5.2.120.0100.04711.65
5.2.110.0030.03311.65
5.2.100.0000.04311.65
5.2.90.0030.03711.65
5.2.80.0000.03311.65
5.2.70.0030.06011.65
5.2.60.0130.05311.65
5.2.50.0030.03711.65
5.2.40.0100.05711.65
5.2.30.0000.04711.65
5.2.20.0070.02711.65
5.2.10.0100.05011.65
5.2.00.0030.05311.65
5.1.60.0070.05311.65
5.1.50.0000.05311.65
5.1.40.0100.04711.65
5.1.30.0100.04311.65
5.1.20.0000.06011.65
5.1.10.0030.03711.65
5.1.00.0030.05311.65
5.0.50.0000.03711.65
5.0.40.0000.04311.65
5.0.30.0070.04311.65
5.0.20.0000.02011.65
5.0.10.0030.04711.65
5.0.00.0000.04311.65
4.4.90.0070.02711.65
4.4.80.0030.02311.65
4.4.70.0030.03311.65
4.4.60.0000.04011.65
4.4.50.0030.02711.65
4.4.40.0000.04711.65
4.4.30.0000.03311.65
4.4.20.0030.03011.65
4.4.10.0000.04011.65
4.4.00.0030.04011.65
4.3.110.0000.04011.65
4.3.100.0030.03011.65
4.3.90.0000.01711.65
4.3.80.0030.03311.65
4.3.70.0030.02311.65
4.3.60.0030.03311.65
4.3.50.0030.03311.65
4.3.40.0070.05011.65
4.3.30.0000.03711.65
4.3.20.0000.02311.65
4.3.10.0000.03711.65
4.3.00.0000.03311.65

preferences:
37.71 ms | 401 KiB | 5 Q