3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(password_hash('foo', PASSWORD_BCRYPT, ['cost' => 5])); var_dump(password_hash('foo', PASSWORD_BCRYPT, ['cost' => 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.07016.23
7.3.00.0070.07016.58
7.2.130.0070.06916.77
7.2.120.0140.06616.34
7.2.110.0130.06616.86
7.2.100.0070.07316.82
7.2.90.0130.06416.76
7.2.80.0070.07016.68
7.2.70.0030.06916.55
7.2.60.0050.07216.61
7.2.50.0100.06916.59
7.2.40.0000.07416.55
7.2.30.0060.06816.51
7.2.20.0100.07016.68
7.2.10.0070.07416.77
7.2.00.0050.07317.93
7.1.250.0070.07015.60
7.1.200.0000.07515.73
7.1.100.0070.06917.83
7.1.70.0030.06917.13
7.1.60.0070.13520.03
7.1.50.0100.10716.80
7.1.00.0000.16722.45
7.0.200.0500.06714.97
7.0.60.0100.12019.87
7.0.50.0030.14717.77
7.0.40.0130.11320.40
7.0.30.0600.14320.10
7.0.20.0170.16320.13
7.0.10.0200.15720.33
7.0.00.0100.15320.10
5.6.280.0030.08720.77
5.6.210.0000.17020.62
5.6.200.0030.11018.11
5.6.190.0170.15320.61
5.6.180.0200.10320.77
5.6.170.0270.12720.62
5.6.160.0170.15720.44
5.6.150.0100.11718.14
5.6.140.0100.11318.15
5.6.130.0030.11018.15
5.6.120.0130.14320.99
5.6.110.0070.16321.13
5.6.100.0130.15720.98
5.6.90.0030.12721.09
5.6.80.0030.10020.41
5.5.350.0300.14320.43
5.5.340.0100.15718.01
5.5.330.0070.11020.29
5.5.320.0270.09720.34
5.5.310.0070.11320.50
5.5.300.0070.11017.99
5.5.290.0100.16018.06
5.5.280.0000.15320.89
5.5.270.0030.10720.79
5.5.260.0070.16020.64
5.5.250.0130.13320.48
5.5.240.3870.10720.13
5.4.450.0530.06019.49
5.4.440.0600.06319.61
5.4.430.0570.06319.56
5.4.420.0630.06319.40
5.4.410.0670.05719.11
5.4.400.0630.05018.84
5.4.390.0600.06019.31
5.4.380.0770.05319.30
5.4.370.0530.05019.24
5.4.360.0570.05318.81
5.4.350.0570.06718.91
5.4.340.0670.04319.13
5.4.320.0430.06718.80
5.4.310.0470.05719.00
5.4.300.0500.05718.79
5.4.290.0500.05718.99
5.4.280.0570.05319.12
5.4.270.0630.06019.22
5.4.260.0700.04719.16
5.4.250.0570.06019.18
5.4.240.0670.05319.21
5.4.230.0570.05719.14
5.4.220.0570.06019.07
5.4.210.0600.05319.05
5.4.200.0630.05016.63
5.4.190.0670.04018.99
5.4.180.0730.05319.09
5.4.170.0600.05719.25
5.4.160.0700.05319.04
5.4.150.0570.04718.83
5.4.140.0500.05716.30
5.4.130.0570.05316.35
5.4.120.0530.05716.16
5.4.110.0600.04316.12
5.4.100.0530.06016.33
5.4.90.0700.03716.15
5.4.80.0630.05016.16
5.4.70.0600.04316.20
5.4.60.0100.07316.21
5.4.50.0000.06316.18
5.4.40.0270.06016.36
5.4.30.0230.06016.45
5.4.20.0370.06016.23

preferences:
28.42 ms | 401 KiB | 5 Q