3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $hash = password_hash("password", PASSWORD_BCRYPT, $options); $pass = "password"; if(password_verify($pass, $hash)) { echo($hash."\nVerified."); }

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.60.0110.00316.75
7.2.00.0000.01619.19
7.1.200.0030.00315.50
7.1.100.0040.01117.80
7.1.70.0180.00017.22
7.1.60.0100.01619.50
7.1.50.0080.00416.98
7.1.00.0070.07322.30
7.0.200.0030.00616.84
7.0.60.0100.03720.01
7.0.50.0100.28717.87
7.0.40.0100.35020.02
7.0.30.0200.30320.09
7.0.20.0300.32720.13
7.0.10.0100.28320.21
7.0.00.0100.32320.16
5.6.280.0030.03721.14
5.6.210.0000.08020.46
5.6.200.0070.29318.19
5.6.190.0070.29320.60
5.6.180.0370.28020.29
5.6.170.0300.29020.61
5.6.160.0000.29020.43
5.6.150.0030.34018.16
5.6.140.0070.32318.14
5.6.130.0130.30318.21
5.6.120.0170.34020.83
5.6.110.0130.34021.02
5.6.100.0000.28320.97
5.6.90.0100.29021.11
5.6.80.0000.28020.37
5.5.350.0030.08020.35
5.5.340.0170.34017.98
5.5.330.0070.32320.40
5.5.320.2870.29020.35
5.5.310.0370.30720.35
5.5.300.0070.30318.02
5.5.290.0100.28017.96
5.5.280.0070.27320.87
5.5.270.0030.28020.74
5.5.260.0100.34320.86
5.5.250.0070.33020.48
5.5.240.0030.34020.25
5.4.450.0300.04719.54
5.4.440.0230.05019.58
5.4.430.0170.05319.54
5.4.420.0130.05719.47
5.4.410.0200.05319.41
5.4.400.0170.05319.16
5.4.390.0170.05319.25
5.4.380.0200.04719.14
5.4.370.0270.04719.15
5.4.360.0130.06018.80
5.4.350.0170.05318.93
5.4.340.0200.05018.77
5.4.320.0100.06019.10
5.4.310.0030.06319.15
5.4.300.0170.05719.25
5.4.290.0130.05719.16
5.4.280.0130.05719.23
5.4.270.0130.06019.25
5.4.260.0200.04719.29
5.4.250.0300.04719.14
5.4.240.0200.05318.77
5.4.230.0230.04718.92
5.4.220.0130.05719.27
5.4.210.0130.05719.07
5.4.200.0230.04319.07
5.4.190.0130.05718.91
5.4.180.0230.04718.76
5.4.170.0170.05318.90
5.4.160.0130.05719.23
5.4.150.0070.06319.27
5.4.140.0330.03316.50
5.4.130.0200.05016.30
5.4.120.0170.04716.36
5.4.110.0230.04316.37
5.4.100.0070.06316.44
5.4.90.0170.05016.38
5.4.80.0170.04716.47
5.4.70.0100.05716.54
5.4.60.0230.04716.25
5.4.50.0230.04316.17
5.4.40.0130.05016.36
5.4.30.0100.05316.35
5.4.20.0170.05016.44
5.4.10.0230.04316.51
5.4.00.0170.04715.91

preferences:
44.57 ms | 400 KiB | 5 Q