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); echo($hash."<br/>") ?> <?php $pass = "password"; $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $pass_hashed = password_hash($pass, PASSWORD_BCRYPT, $options); echo($pass_hashed."<br/>"); if(password_verify($pass_hashed, $hashed)) { 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.4.10.0100.01014.94
7.4.00.0040.01015.03
7.3.130.0060.01315.00
7.3.120.0040.01415.00
7.3.110.0070.01015.07
7.3.100.0130.00014.90
7.3.90.0070.01014.91
7.3.80.0130.00615.06
7.3.70.0060.00314.89
7.3.60.0060.01214.36
7.3.50.0100.00714.86
7.3.40.0060.00614.70
7.3.30.0030.01014.41
7.3.20.0070.01016.80
7.3.10.0100.00716.79
7.3.00.0090.00616.71
7.2.260.0110.00715.00
7.2.250.0060.01315.13
7.2.240.0000.01814.84
7.2.230.0040.00814.96
7.2.220.0110.00814.48
7.2.210.0100.00714.79
7.2.200.0030.00714.93
7.2.190.0040.01414.81
7.2.180.0040.01114.83
7.2.170.0030.01314.74
7.2.160.0070.01015.09
7.2.150.0110.00416.86
7.2.140.0070.00716.84
7.2.130.0080.00816.50
7.2.120.0100.00716.70
7.2.110.0060.01216.84
7.2.100.0040.01516.75
7.2.90.0060.00916.91
7.2.80.0000.01216.48
7.2.70.0100.00616.78
7.2.60.0030.01016.74
7.2.50.0060.00916.88
7.2.40.0030.01416.77
7.2.30.0060.00316.51
7.2.20.0130.00316.77
7.2.10.0070.01117.00
7.2.00.0060.01118.15
7.1.330.0100.00315.82
7.1.320.0060.01315.84
7.1.310.0070.00715.57
7.1.300.0060.00915.58
7.1.290.0030.01315.68
7.1.280.0030.01015.69
7.1.270.0070.01115.76
7.1.260.0000.01115.61
7.1.250.0040.01215.69
7.1.240.0030.01015.73
7.1.230.0070.01115.55
7.1.220.0060.00315.63
7.1.210.0030.00615.52
7.1.200.0090.00415.50
7.1.190.0000.01515.61
7.1.180.0070.00315.56
7.1.170.0070.01015.30
7.1.160.0030.00615.62
7.1.150.0070.00315.30
7.1.140.0030.01415.79
7.1.130.0090.00915.72
7.1.120.0030.00615.79
7.1.110.0130.00015.67
7.1.100.0030.00816.70
7.1.90.0000.01215.52
7.1.80.0000.00915.65
7.1.70.0090.00616.50
7.1.60.0080.01017.53
7.1.50.0070.01016.25
7.1.40.0070.00715.59
7.1.30.0060.00615.75
7.1.20.0060.00615.55
7.1.10.0090.00315.77
7.1.00.0050.04119.03
7.0.330.0100.00315.09
7.0.320.0060.00615.07
7.0.310.0000.01115.18
7.0.300.0030.01015.05
7.0.290.0060.00615.30
7.0.280.0000.01015.50
7.0.270.0090.00615.20
7.0.260.0030.00615.14
7.0.250.0090.00615.47
7.0.240.0070.00715.49
7.0.230.0000.01115.44
7.0.220.0000.01115.11
7.0.210.0110.00015.25
7.0.200.0020.00816.02
7.0.190.0120.00315.30
7.0.180.0060.00315.36
7.0.170.0090.00015.38
7.0.160.0030.00915.33
7.0.150.0000.00915.28
7.0.140.0080.00415.42
7.0.130.0040.01115.48
7.0.120.0040.00715.28
7.0.110.0090.00615.49
7.0.100.0070.00415.37
7.0.90.0060.01015.25
7.0.80.0030.00615.20
7.0.70.0070.00315.30
7.0.60.0070.01817.58
7.0.50.0000.15216.66
7.0.40.0050.14516.72
7.0.30.0100.15116.75
7.0.20.0140.15816.95
7.0.10.0080.16816.77
7.0.00.0020.17516.84
5.6.400.0030.01314.08
5.6.390.0030.01014.12
5.6.380.0000.01413.91
5.6.370.0060.00613.77
5.6.360.0070.00714.10
5.6.350.0100.00314.35
5.6.340.0060.00314.35
5.6.330.0040.01213.91
5.6.320.0100.00714.08
5.6.310.0110.00314.05
5.6.300.0030.01013.95
5.6.290.0090.00614.28
5.6.280.0050.03217.81
5.6.270.0120.00314.05
5.6.260.0040.00814.15
5.6.250.0060.00914.03
5.6.240.0030.01413.93
5.6.230.0030.00714.01
5.6.220.0060.00614.10
5.6.210.0050.04317.28
5.6.200.0110.15316.20
5.6.190.0070.14517.37
5.6.180.0130.14917.34
5.6.170.0070.14617.37
5.6.160.0100.17517.41
5.6.150.0080.14316.16
5.6.140.0110.14016.07
5.6.130.0030.15416.17
5.6.120.0070.16717.67
5.6.110.0130.15417.58
5.6.100.0050.14417.58
5.6.90.0030.15717.61
5.6.80.0060.16117.38
5.6.70.0070.00314.11
5.6.60.0000.00914.11
5.6.50.0070.00714.11
5.6.40.0080.00313.83
5.6.30.0070.00714.05
5.6.20.0000.01114.25
5.6.10.0100.00614.05
5.6.00.0000.01214.04
5.5.380.0070.01013.83
5.5.370.0050.00314.02
5.5.360.0030.00713.74
5.5.350.0130.02817.24
5.5.340.0070.13815.88
5.5.330.0080.17217.15
5.5.320.0210.17417.18
5.5.310.0180.17117.24
5.5.300.0040.16416.04
5.5.290.0030.18016.15
5.5.280.0050.17817.45
5.5.270.0120.14317.39
5.5.260.0070.16717.43
5.5.250.0040.17817.46
5.5.240.0080.17117.16
5.5.230.0080.00613.91
5.5.220.0070.00314.27
5.5.210.0040.00814.22
5.5.200.0000.00913.78
5.5.190.0040.01413.72
5.5.180.0060.00914.04
5.5.170.0100.00013.96
5.5.160.0110.00014.15
5.5.150.0130.00314.04
5.5.140.0090.00614.07
5.5.130.0000.01014.01
5.5.120.0060.00614.29
5.5.110.0060.00613.91
5.5.100.0030.01014.08
5.5.90.0060.00913.64
5.5.80.0060.00914.03
5.5.70.0130.00014.12
5.5.60.0090.00313.76
5.5.50.0030.00713.60
5.5.40.0080.00614.07
5.5.30.0040.01113.93
5.5.20.0030.01013.87
5.5.10.0030.00914.02
5.5.00.0030.01013.64
5.4.450.0160.02515.35
5.4.440.0100.03215.13
5.4.430.0100.03215.21
5.4.420.0150.02815.31
5.4.410.0130.03015.00
5.4.400.0130.02814.92
5.4.390.0150.02615.12
5.4.380.0070.03015.10
5.4.370.0080.02815.05
5.4.360.0130.02814.97
5.4.350.0100.03015.16
5.4.340.0120.03015.16
5.4.330.0100.00311.07
5.4.320.0060.03415.08
5.4.310.0120.03215.01
5.4.300.0130.02515.06
5.4.290.0100.02915.16
5.4.280.0100.02715.18
5.4.270.0080.03015.16
5.4.260.0120.02714.92
5.4.250.0100.03214.96
5.4.240.0070.03715.18
5.4.230.0120.02515.07
5.4.220.0100.02915.05
5.4.210.0130.04115.16
5.4.200.0150.03515.12
5.4.190.0080.03215.11
5.4.180.0130.02315.04
5.4.170.0130.02515.02
5.4.160.0150.02715.13
5.4.150.0090.03215.02
5.4.140.0050.03313.76
5.4.130.0120.02313.71
5.4.120.0080.02813.75
5.4.110.0050.03413.71
5.4.100.0120.02613.68
5.4.90.0100.02913.75
5.4.80.0130.02613.56
5.4.70.0100.02913.79
5.4.60.0080.02913.78
5.4.50.0080.03313.75
5.4.40.0150.02313.61
5.4.30.0070.03213.71
5.4.20.0130.02513.69
5.4.10.0100.03013.75
5.4.00.0130.02713.39

preferences:
38.68 ms | 401 KiB | 5 Q