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, $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.3.00.0000.01216.51
7.2.130.0110.00816.75
7.2.120.0110.00016.77
7.2.110.0070.00716.67
7.2.100.0100.00316.79
7.2.90.0060.01216.82
7.2.80.0110.00716.75
7.2.70.0040.00916.73
7.2.60.0090.00716.88
7.2.50.0130.00316.77
7.2.40.0000.00816.59
7.2.30.0100.00016.92
7.2.20.0100.00316.50
7.2.10.0040.00716.84
7.2.00.0070.00517.96
7.1.250.0030.00715.80
7.1.240.0000.01315.78
7.1.230.0060.00315.45
7.1.220.0040.01115.44
7.1.210.0100.00315.71
7.1.200.0020.00915.57
7.1.190.0030.00915.68
7.1.180.0030.01015.43
7.1.170.0110.00015.56
7.1.160.0100.00315.79
7.1.150.0060.00615.57
7.1.140.0030.00715.79
7.1.130.0090.00315.47
7.1.120.0060.00615.49
7.1.110.0050.00415.87
7.1.100.0070.00516.98
7.1.90.0040.01115.38
7.1.80.0000.01315.34
7.1.70.0060.00816.11
7.1.60.0050.01317.62
7.1.50.0090.00716.21
7.1.40.0070.00315.65
7.1.30.0000.01415.56
7.1.20.0120.00315.71
7.1.10.0040.01115.56
7.1.00.0050.03819.00
7.0.330.0000.00914.93
7.0.320.0030.00915.29
7.0.310.0070.00314.94
7.0.300.0030.00915.23
7.0.290.0050.00315.38
7.0.280.0000.01015.27
7.0.270.0030.01315.32
7.0.260.0060.00614.93
7.0.250.0100.00315.16
7.0.240.0070.00714.98
7.0.230.0030.00915.05
7.0.220.0070.00714.95
7.0.210.0080.00815.20
7.0.200.0060.00515.77
7.0.190.0030.00615.33
7.0.180.0130.00015.21
7.0.170.0090.00415.19
7.0.160.0070.00714.98
7.0.150.0040.00415.20
7.0.140.0000.00914.97
7.0.130.0060.00615.17
7.0.120.0060.00915.18
7.0.110.0070.00715.11
7.0.100.0110.00315.18
7.0.90.0030.01015.21
7.0.80.0060.00915.38
7.0.70.0130.00015.22
7.0.60.0130.04017.60
7.0.50.0070.22616.63
7.0.40.0070.23216.73
7.0.30.0160.23116.65
7.0.20.0130.23216.68
7.0.10.0040.21316.85
7.0.00.0020.22816.81
5.6.380.0030.00714.21
5.6.370.0000.00914.33
5.6.360.0000.01414.41
5.6.350.0100.00414.16
5.6.340.0070.00714.22
5.6.330.0100.00314.23
5.6.320.0060.00614.08
5.6.310.0090.00314.13
5.6.300.0030.00913.88
5.6.290.0090.00014.29
5.6.280.0000.03417.63
5.6.270.0040.00414.29
5.6.260.0000.00914.11
5.6.250.0070.00314.25
5.6.240.0030.00913.77
5.6.230.0030.01013.82
5.6.220.0070.00313.94
5.6.210.0070.04217.29
5.6.200.0040.20016.09
5.6.190.0100.23217.26
5.6.180.0150.22317.13
5.6.170.0150.23317.23
5.6.160.0050.22717.25
5.6.150.0030.21416.05
5.6.140.0070.22815.92
5.6.130.0050.20916.08
5.6.120.0080.20217.55
5.6.110.0060.23317.58
5.6.100.0060.23517.44
5.6.90.0050.20917.46
5.6.80.0030.23217.22
5.6.70.0060.00614.15
5.6.60.0060.00613.70
5.6.50.0070.00713.79
5.6.40.0000.01314.03
5.6.30.0030.00914.10
5.6.20.0080.00513.92
5.6.10.0030.00914.00
5.6.00.0070.00313.92
5.5.380.0030.00611.18
5.5.370.0000.00811.18
5.5.360.0030.00711.18
5.5.350.0150.03215.77
5.5.340.0020.20214.54
5.5.330.0070.21215.62
5.5.320.0130.22015.76
5.5.310.0250.21715.73
5.5.300.0050.20114.59
5.5.290.0020.20214.58
5.5.280.0050.20015.91
5.5.270.0080.22315.91
5.5.260.0050.23615.96
5.5.250.0070.23515.86
5.5.240.0030.23515.66
5.5.230.0000.01111.18
5.5.220.0110.00211.18
5.5.210.0030.00611.18
5.5.200.0040.00811.18
5.5.190.0070.00411.18
5.5.180.0090.00311.18
5.5.170.0030.00611.18
5.5.160.0000.00711.18
5.5.150.0030.00711.18
5.5.140.0100.00011.18
5.5.130.0120.00011.18
5.5.120.0030.00611.18
5.5.110.0080.00311.18
5.5.100.0040.00411.18
5.5.90.0000.01111.18
5.5.80.0030.00511.18
5.5.70.0040.00711.18
5.5.60.0060.00611.18
5.5.50.0060.00011.18
5.5.40.0030.00711.18
5.5.30.0030.01011.18
5.5.20.0070.00311.18
5.5.10.0090.00311.18
5.5.00.0030.00711.18
5.4.450.0130.02815.36
5.4.440.0100.03315.14
5.4.430.0140.03015.29
5.4.420.0080.03215.22
5.4.410.0110.02915.22
5.4.400.0050.03315.18
5.4.390.0080.03315.19
5.4.380.0090.03215.19
5.4.370.0130.02815.23
5.4.360.0090.03215.21
5.4.350.0080.02915.02
5.4.340.0050.03515.02
5.4.330.0060.00611.18
5.4.320.0030.03715.17
5.4.310.0080.02915.12
5.4.300.0050.03315.21
5.4.290.0070.03215.21
5.4.280.0150.02815.17
5.4.270.0170.02815.13
5.4.260.0170.03515.10
5.4.250.0070.03515.17
5.4.240.0080.03115.13
5.4.230.0040.03515.12
5.4.220.0150.02715.22
5.4.210.0080.03515.02
5.4.200.0030.03315.24
5.4.190.0120.02614.96
5.4.180.0100.03015.19
5.4.170.0150.02515.21
5.4.160.0150.02515.12
5.4.150.0110.02815.20
5.4.140.0120.02713.89
5.4.130.0170.01913.78
5.4.120.0120.02513.71
5.4.110.0140.02513.85
5.4.100.0140.02313.85
5.4.90.0090.02713.78
5.4.80.0100.02713.85
5.4.70.0160.02113.84
5.4.60.0100.02713.85
5.4.50.0170.02013.83
5.4.40.0150.02413.84
5.4.30.0150.02513.83
5.4.20.0110.02713.61
5.4.10.0120.02513.79
5.4.00.0130.02313.42

preferences:
37.47 ms | 401 KiB | 5 Q