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("Verified."); }

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.0120.00316.47
7.2.00.0100.00318.92
7.1.200.0030.00915.36
7.1.100.0030.00617.61
7.1.70.0160.00017.23
7.1.60.0070.01419.50
7.1.50.0000.01416.97
7.1.00.0100.06322.45
7.0.200.0040.00416.41
7.0.60.0070.08319.94
7.0.50.0030.29017.84
7.0.40.0000.34020.13
7.0.30.0170.28320.08
7.0.20.0200.30720.21
7.0.10.0070.35020.16
7.0.00.0070.29320.07
5.6.280.0000.07321.07
5.6.210.0130.06320.51
5.6.200.0100.32318.18
5.6.190.0000.28320.41
5.6.180.0330.28020.27
5.6.170.0370.27020.39
5.6.160.0000.29020.48
5.6.150.0030.34718.15
5.6.140.0000.35718.15
5.6.130.0130.34718.16
5.6.120.0100.31021.00
5.6.110.0100.33321.14
5.6.100.0130.34720.96
5.6.90.0170.31721.09
5.6.80.0030.28020.36
5.5.350.0000.08320.46
5.5.340.0100.34718.02
5.5.330.0070.28720.19
5.5.320.2970.29320.27
5.5.310.0300.32020.27
5.5.300.0070.29317.95
5.5.290.0100.34717.99
5.5.280.0070.30020.87
5.5.270.0170.31020.77
5.5.260.0070.30320.76
5.5.250.0130.33720.68
5.5.240.0030.32720.15
5.4.450.0730.05319.63
5.4.440.0730.05319.11
5.4.430.0530.05719.57
5.4.420.0770.03719.60
5.4.410.0630.05319.34
5.4.400.0600.06019.28
5.4.390.0700.04719.18
5.4.380.0670.04718.77
5.4.370.0900.06019.14
5.4.360.0730.06319.12
5.4.350.0670.05719.26
5.4.340.0730.04719.14
5.4.320.0930.06718.93
5.4.310.0600.06719.31
5.4.300.0830.04018.93
5.4.290.0700.04319.27
5.4.280.0530.06319.21
5.4.270.0670.05319.23
5.4.260.0630.05019.18
5.4.250.0570.06018.90
5.4.240.0600.05719.13
5.4.230.0630.06019.29
5.4.220.0630.05019.20
5.4.210.0730.04318.77
5.4.200.0700.06718.93
5.4.190.0630.05019.30
5.4.180.0670.05319.30
5.4.170.0670.04719.20
5.4.160.0800.05319.12
5.4.150.0900.06019.29
5.4.140.0730.04316.28
5.4.130.0800.03716.49
5.4.120.0730.04716.43
5.4.110.0670.05316.46
5.4.100.0730.04316.27
5.4.90.0700.04716.55
5.4.80.0700.05716.20
5.4.70.0730.05316.16
5.4.60.0470.05316.25
5.4.50.0630.03716.42
5.4.40.0330.03716.36
5.4.30.0600.05016.54
5.4.20.0030.05716.25
5.4.10.0230.04716.42
5.4.00.0630.04015.88

preferences:
32.03 ms | 400 KiB | 5 Q