3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'foo'; for ($i = 0; $i < 10; $i++) { var_dump(password_hash($a, PASSWORD_BCRYPT)); }

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.80.0130.59416.21
7.2.60.0100.60016.74
7.2.00.0030.62319.41
7.1.200.0030.62015.92
7.1.100.0070.62717.95
7.1.70.0030.60817.30
7.1.60.0070.69820.03
7.1.50.0200.62434.56
7.1.00.0000.67722.45
7.0.200.0070.60916.71
7.0.60.0000.69719.86
7.0.50.0100.70717.88
7.0.40.0030.63720.26
7.0.30.0230.67720.09
7.0.20.0200.63020.16
7.0.10.0030.68020.45
7.0.00.0000.64020.24
5.6.280.0070.66321.07
5.6.210.0000.70020.60
5.6.200.0130.69318.15
5.6.190.0030.66720.50
5.6.180.3870.63020.57
5.6.170.0230.67020.48
5.6.160.0170.69720.71
5.6.150.0000.66018.15
5.6.140.0170.71018.25
5.6.130.0070.65718.13
5.6.120.0070.66021.00
5.6.110.0030.71320.95
5.6.100.0030.70721.14
5.6.90.0130.71021.09
5.6.80.0030.71320.39
5.6.70.4470.62020.50
5.5.350.0030.70720.37
5.5.340.0130.70718.02
5.5.330.0070.70720.21
5.5.320.0170.66020.51
5.5.310.0230.71320.27
5.5.300.0170.68717.96
5.5.290.0030.71718.02
5.5.280.0030.70020.73
5.5.270.0130.70720.76
5.5.260.0030.63320.79
5.5.250.0130.71320.49
5.5.240.0230.59720.27
5.4.450.0900.05319.48
5.4.440.0400.07019.09
5.4.430.0800.05319.54
5.4.420.0730.06719.62
5.4.410.0900.07019.39
5.4.400.0870.04019.14
5.4.390.0770.04318.80
5.4.380.0630.05319.17
5.4.370.0670.06019.08
5.4.360.0600.05319.28
5.4.350.0730.05319.30
5.4.340.0600.06319.16
5.4.320.0770.05719.09
5.4.310.0770.07718.97
5.4.300.0570.05719.21
5.4.290.0870.05718.99
5.4.280.0800.05019.16
5.4.270.0730.04719.32
5.4.260.0630.05718.95
5.4.250.0700.05019.29
5.4.240.0800.05718.80
5.4.230.0970.06019.19
5.4.220.0700.06319.18
5.4.210.0630.07018.96
5.4.200.0600.06316.61
5.4.190.0800.06018.96
5.4.180.0730.05319.07
5.4.170.0700.06018.94
5.4.160.0700.08019.27
5.4.150.0870.05718.90
5.4.140.0830.04016.19
5.4.130.0700.06016.43
5.4.120.0730.06716.38
5.4.110.0770.05716.38
5.4.100.0630.06316.21
5.4.90.0770.06316.38
5.4.80.0630.05316.59
5.4.70.0730.05716.40
5.4.60.0800.06716.19
5.4.50.0800.04716.22
5.4.40.0730.05016.41
5.4.30.0700.05716.37
5.4.20.0730.06716.23
5.4.10.0700.06016.42
5.4.00.0670.05015.63

preferences:
35.31 ms | 401 KiB | 5 Q