3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = (int) (microtime(true) * 1000); echo password_hash('dsddssds', PASSWORD_BCRYPT, ['cost' => 20]) . "\n"; echo ((int) (microtime(true) * 1000)) - $s;

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.0032.49819.43
7.1.100.0032.49817.82
7.1.70.0132.48817.00
7.1.60.0072.49519.59
7.1.50.0302.18734.80
7.1.00.0072.49322.35
7.0.200.2272.26916.37
7.0.60.0002.50020.04
7.0.50.0072.49317.89
7.0.40.0102.49019.87
7.0.30.0472.45319.84
7.0.20.0172.48319.80
7.0.10.0072.49319.88
7.0.00.0232.47719.98
5.6.280.0032.49720.90
5.6.210.0072.49320.56
5.6.200.0132.48718.11
5.6.190.0102.49020.36
5.6.180.2902.21020.39
5.6.170.0272.47320.28
5.6.160.0002.50020.23
5.6.150.0032.49718.18
5.6.140.0072.49318.10
5.6.130.0002.50018.05
5.6.120.0072.49321.09
5.6.110.2502.25021.13
5.6.100.0132.48720.97
5.6.90.0102.49020.97
5.6.80.0072.49320.37
5.6.70.0302.47020.38
5.5.350.0172.48320.42
5.5.340.0172.48317.95
5.5.330.0072.49320.29
5.5.320.0202.48020.09
5.5.310.0232.47720.11
5.5.300.0172.48317.86
5.5.290.0032.49717.85
5.5.280.0072.49320.65
5.5.270.0032.49720.83
5.5.260.0172.48320.75
5.5.250.0032.49720.77
5.5.240.0432.45720.14
5.4.450.0000.08719.39
5.4.440.0370.06319.26
5.4.430.0700.06319.20
5.4.420.0530.05019.49
5.4.410.0570.05019.00
5.4.400.0570.05719.09
5.4.390.0370.06019.01
5.4.380.0470.05319.01
5.4.370.0500.05718.88
5.4.360.0570.05318.84
5.4.350.0530.06019.01
5.4.340.0670.05319.22
5.4.320.0570.04319.08
5.4.310.0500.04719.13
5.4.300.0500.05319.17
5.4.290.0530.05319.07
5.4.280.0530.05019.17
5.4.270.0470.05319.02
5.4.260.0630.04719.11
5.4.250.0530.05319.08
5.4.240.0670.04019.09
5.4.230.0530.05018.97
5.4.220.0670.05019.06
5.4.210.0570.06019.09
5.4.200.0430.04716.49
5.4.190.0470.05019.11
5.4.180.0500.04319.12
5.4.170.0500.05019.01
5.4.160.0530.05019.10
5.4.150.0500.05318.91
5.4.140.0470.06016.18
5.4.130.0670.04716.17
5.4.120.0470.06716.34
5.4.110.0470.06316.44
5.4.100.0600.05316.20
5.4.90.0670.04016.42
5.4.80.0470.05016.37
5.4.70.0530.05316.43
5.4.60.0600.05316.36
5.4.50.0000.04316.36
5.4.40.0200.04716.31
5.4.30.0370.05716.31
5.4.20.0030.03716.36

preferences:
43.95 ms | 400 KiB | 5 Q