3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); $options['cost'] = 12; for($i=0;$i<1;$i++) { $p = password_hash('toto', 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.2.00.0070.26019.37
7.1.70.0070.24117.26
7.1.60.0030.27819.82
7.1.50.0130.31217.11
7.1.00.0030.34022.37
7.0.200.0100.24316.93
7.0.140.0100.33022.07
7.0.100.0100.29020.18
7.0.90.0430.27319.94
7.0.80.0100.33019.93
7.0.70.0100.28719.91
7.0.60.0100.36319.80
7.0.50.0070.36020.33
7.0.40.0030.30320.03
7.0.30.0000.34019.96
7.0.20.0130.32720.09
7.0.10.0100.24320.08
7.0.00.0030.32720.07
5.6.280.0100.34721.04
5.6.250.0070.33720.54
5.6.240.0030.32020.67
5.6.230.0030.34720.48
5.6.220.0070.30320.56
5.6.210.0070.25320.68
5.6.200.0100.34021.11
5.6.190.0100.33721.06
5.6.180.0030.27021.17
5.6.170.0070.35020.93
5.6.160.0030.34020.94
5.6.150.0030.33321.01
5.6.140.0070.33721.02
5.6.130.0070.31721.05
5.6.120.0070.33020.97
5.6.110.0070.35021.05
5.6.100.0070.33721.13
5.6.90.0100.36021.03
5.6.80.0030.24320.44
5.6.70.0100.27720.55
5.6.60.0130.33320.41
5.6.50.0070.35020.36
5.6.40.0070.24320.33
5.6.30.0030.28720.38
5.6.20.0070.23720.39
5.6.10.0070.24020.39
5.6.00.0000.24020.30
5.5.380.0170.33320.42
5.5.370.0030.24720.35
5.5.360.0030.34320.35
5.5.350.0100.34020.45
5.5.340.0030.36720.93
5.5.330.0070.32020.89
5.5.320.0100.35720.92
5.5.310.0170.33320.75
5.5.300.0070.34320.89
5.5.290.0100.32720.76
5.5.280.0130.34320.88
5.5.270.0030.31720.63
5.5.260.0230.25320.76
5.5.250.0070.31020.73
5.5.240.0100.35320.27
5.5.230.0030.34320.20
5.5.220.0130.30720.25
5.5.210.0030.28320.29
5.5.200.0070.24020.24
5.5.190.0030.28020.12
5.5.180.0100.28020.16
5.5.160.0100.31720.21
5.5.150.0070.24019.98
5.5.140.0030.30320.23
5.5.130.0070.29020.15
5.5.120.0000.27320.25
5.5.110.0500.23720.23
5.5.100.0000.23720.18
5.5.90.0000.24720.08
5.5.80.0070.28320.13
5.5.70.0000.24720.09
5.5.60.0030.23320.05
5.5.50.0100.28719.93
5.5.40.0030.23320.06
5.5.30.0100.34020.11
5.5.20.0030.30720.13
5.5.10.0000.31320.10
5.5.00.0100.29019.97
5.4.450.0100.07719.36
5.4.440.0030.06019.36
5.4.430.0070.07319.44
5.4.420.0070.07019.48
5.4.410.0030.07319.32
5.4.400.0030.05319.16
5.4.390.0070.03019.05
5.4.380.0130.06719.13
5.4.370.0100.07018.88
5.4.360.0030.08319.04
5.4.350.0000.04319.23
5.4.340.0070.03019.04
5.4.320.0030.03319.14
5.4.310.0030.03319.13
5.4.300.0000.03719.23
5.4.290.0070.04318.87
5.4.280.0000.04319.20
5.4.270.0070.03319.14
5.4.260.0100.03319.04
5.4.250.0030.03319.02
5.4.240.0030.03719.12
5.4.230.0070.02718.90
5.4.220.0000.03719.05
5.4.210.0000.04019.20
5.4.200.0130.07019.12
5.4.190.0030.04018.94
5.4.180.0030.03719.13
5.4.170.0070.06318.87
5.4.160.0000.08319.01
5.4.150.0100.04019.10
5.4.140.0070.05316.27
5.4.130.0030.04016.43
5.4.120.0070.04316.26
5.4.110.0030.08316.44
5.4.100.0070.06316.51
5.4.90.0130.06016.39
5.4.80.0070.06016.49
5.4.70.0000.08316.33
5.4.60.0000.04316.47
5.4.50.0130.04016.36
5.4.40.0100.06716.45
5.4.30.0030.06716.36
5.4.20.0070.07316.26
5.4.10.0070.07316.45
5.4.00.0070.03715.92
5.3.290.0000.06314.71
5.3.280.0030.03714.62
5.3.270.0130.07714.59
5.3.260.0100.07314.72
5.3.250.0030.03714.53
5.3.240.0000.04014.64
5.3.230.0000.07014.60
5.3.220.0070.03714.63
5.3.210.0030.08314.59
5.3.200.0100.03314.52
5.3.190.0130.05314.59
5.3.180.0100.07314.58
5.3.170.0070.03714.67
5.3.160.0030.07714.54
5.3.150.0070.08014.59
5.3.140.0100.06314.48
5.3.130.0070.04314.61
5.3.120.0070.04714.53
5.3.110.0130.06314.61
5.3.100.0100.07314.06
5.3.90.0130.06313.99
5.3.80.0070.04014.02
5.3.70.0030.06714.04
5.3.60.0070.07714.02
5.3.50.0030.07713.85
5.3.40.0070.07313.88
5.3.30.0070.07314.00
5.3.20.0130.06313.61
5.3.10.0070.06313.56
5.3.00.0130.06013.75
5.2.170.0100.06011.05
5.2.160.0000.03311.25
5.2.150.0000.04711.05
5.2.140.0130.03011.29
5.2.130.0100.05711.21
5.2.120.0030.06011.19
5.2.110.0030.05711.13
5.2.100.0070.05011.08
5.2.90.0030.06311.03
5.2.80.0070.06010.98
5.2.70.0000.06311.15
5.2.60.0000.06710.96
5.2.50.0030.03311.03
5.2.40.0070.04310.88
5.2.30.0000.03310.96
5.2.20.0070.06010.86
5.2.10.0070.03711.00
5.2.00.0000.03010.73
5.1.60.0030.0539.90
5.1.50.0070.0509.94
5.1.40.0100.0309.96
5.1.30.0000.05710.43
5.1.20.0070.05710.49
5.1.10.0070.04010.12
5.1.00.0000.04710.18
5.0.50.0000.0208.67
5.0.40.0000.0208.50
5.0.30.0030.0538.23
5.0.20.0030.0338.28
5.0.10.0000.0408.30
5.0.00.0030.0338.23
4.4.90.0000.0138.23
4.4.80.0070.0308.23
4.4.70.0000.0278.23
4.4.60.0030.0178.23
4.4.50.0030.0338.23
4.4.40.0000.0278.23
4.4.30.0070.0278.23
4.4.20.0030.0338.23
4.4.10.0000.0308.23
4.4.00.0000.0508.23
4.3.110.0030.0378.23
4.3.100.0030.0178.23
4.3.90.0000.0408.23
4.3.80.0030.0408.23
4.3.70.0000.0138.23
4.3.60.0070.0308.23
4.3.50.0000.0208.23
4.3.40.0000.0508.23
4.3.30.0000.0178.23
4.3.20.0000.0378.23
4.3.10.0000.0278.23
4.3.00.0030.0338.23

preferences:
39.2 ms | 400 KiB | 5 Q