3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 12, 'salt' => mcrypt_create_iv(256, MCRYPT_DEV_URANDOM), ]; $hash = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $verify = password_verify("rasmuslerdorf",$hash); var_dump( [ "hash" => $hash, "verify" => $verify ]); ?>

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.4.00.0070.00714.82
7.3.120.0000.01414.58
7.3.110.0030.01314.62
7.3.100.0030.01014.86
7.3.90.0100.00314.67
7.3.80.0120.00314.84
7.3.70.0090.00614.57
7.3.60.0060.00814.52
7.3.50.0060.01014.93
7.3.40.0060.00614.84
7.3.30.0040.01114.88
7.3.20.0040.00416.39
7.3.10.0000.01316.49
7.3.00.0070.00516.50
7.2.250.0080.00914.92
7.2.240.0100.01014.86
7.2.230.0030.01315.10
7.2.220.0000.01414.52
7.2.210.0130.00314.53
7.2.200.0100.00314.82
7.2.190.0100.00714.84
7.2.180.0040.01114.66
7.2.170.0070.00314.88
7.2.130.0100.00316.38
7.2.120.0160.00316.35
7.2.110.0070.00916.25
7.2.100.0090.00916.65
7.2.90.0150.01516.33
7.2.80.0090.00616.73
7.2.70.0170.00916.48
7.2.60.0070.00916.59
7.2.50.0150.01016.58
7.2.40.0120.01216.48
7.2.30.0230.00316.76
7.2.20.0030.01616.45
7.2.10.0090.01416.42
7.2.00.0100.00918.10
7.1.330.0120.00315.58
7.1.320.0030.00915.34
7.1.310.0030.00615.68
7.1.300.0090.00615.71
7.1.290.0030.01015.58
7.1.280.0030.00915.52
7.1.270.0040.00715.54
7.1.260.0040.00715.79
7.1.250.0100.00715.52
7.1.200.0070.00715.71
7.1.100.0100.00617.73
7.1.70.0090.00316.86
7.1.60.0000.01819.12
7.1.50.0090.01216.90
7.1.00.0070.07322.33
7.0.200.0110.00416.40
7.0.60.0130.07719.84
7.0.50.0030.52317.81
7.0.40.0030.52320.21
7.0.30.0470.55320.13
7.0.20.0330.58720.17
7.0.10.0030.54720.13
7.0.00.0200.56020.23
5.6.210.0100.07020.54
5.6.200.0070.54718.22
5.6.190.0070.59020.41
5.6.180.0300.57720.41
5.6.170.0400.57020.51
5.6.160.0070.55020.44
5.6.150.0100.59318.19
5.6.140.0070.54718.15
5.6.130.0070.54018.14
5.6.120.0130.58020.89
5.6.110.0030.59321.11
5.6.100.0100.56721.11
5.6.90.0070.58321.10
5.6.80.0130.55020.38
5.6.70.0100.50320.36
5.5.350.0170.03320.34
5.5.340.0000.59717.98
5.5.330.0030.53320.48
5.5.320.0330.53020.32
5.5.310.0400.57020.24
5.5.300.0100.53017.98
5.5.290.0100.56017.97
5.5.280.0130.55020.67
5.5.270.0100.51320.76
5.5.260.0200.58720.65
5.5.250.0070.59320.77
5.5.240.0130.59020.35
5.4.450.0600.05319.06
5.4.440.0500.06019.54
5.4.430.0600.04719.18
5.4.420.0570.05019.59
5.4.410.0600.04719.46
5.4.400.0500.05318.77
5.4.390.0530.05719.04
5.4.380.0530.05318.89
5.4.370.0600.04719.25
5.4.360.0570.04718.84
5.4.350.0530.05719.07
5.4.340.0500.05719.02
5.4.320.0430.06319.30
5.4.310.0500.05318.94
5.4.300.0500.05319.05
5.4.290.0470.05719.05
5.4.280.0470.06019.07
5.4.270.0800.07019.04
5.4.260.0970.05718.89
5.4.250.0930.06019.04
5.4.240.0730.06319.02
5.4.230.0600.04319.21
5.4.220.0770.04019.29
5.4.210.0530.05018.93
5.4.200.0530.05019.04
5.4.190.0570.04719.04
5.4.180.0570.04319.04
5.4.170.0500.06018.74
5.4.160.0670.05719.19
5.4.150.0600.06019.01
5.4.140.0570.04716.35
5.4.130.0530.05016.34
5.4.120.0570.04316.26
5.4.110.0470.05316.39
5.4.100.0500.05016.49
5.4.90.0500.05016.47
5.4.80.0530.04716.48
5.4.70.0230.04016.37
5.4.60.0200.04316.36
5.4.50.0070.06716.43
5.4.40.0070.06716.37
5.4.30.0030.06316.22
5.4.20.0070.03316.36

preferences:
31.98 ms | 400 KiB | 5 Q