3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pswd($password) { $conf = new DataStorage(); /*if($conf->value('app.password.salt') !== false) $salt = '$2y$'.$conf->value('app.password.salt').'$'; else*/ $salt = '$2y$'.substr(md5('zaqDFGDws123xc456derfPOADv78bg9tyGISh0nmjukiolp'), 0, 22).'$'; if(!function_exists('password_hash')) return crypt($password, $salt); else return password_hash($password, PASSWORD_DEFAULT, ['salt' => $salt, 'cost' => 12]); } echo pswd('1q2w3e4r5t');

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.0120.00914.90
7.3.120.0030.01614.60
7.3.110.0040.00814.76
7.3.100.0170.00315.12
7.3.90.0070.00714.87
7.3.80.0120.00314.63
7.3.70.0040.00814.68
7.3.60.0060.00614.65
7.3.50.0070.00714.54
7.3.40.0070.01014.48
7.3.30.0070.00714.89
7.3.20.0060.00616.71
7.3.10.0070.00716.54
7.3.00.0060.00716.51
7.2.250.0100.00714.61
7.2.240.0030.01514.74
7.2.230.0090.00914.87
7.2.220.0030.01214.74
7.2.210.0030.01215.00
7.2.200.0040.01115.02
7.2.190.0110.00414.92
7.2.180.0050.00514.65
7.2.170.0110.00314.93
7.2.130.0070.00716.60
7.2.120.0000.01016.77
7.2.110.0060.00616.48
7.2.100.0000.01216.82
7.2.90.0040.01116.64
7.2.80.0060.00616.81
7.2.70.0040.01216.88
7.2.60.0100.00516.62
7.2.50.0060.00916.73
7.2.40.0090.00616.97
7.2.30.0080.00416.84
7.2.20.0130.00016.77
7.2.10.0110.00316.81
7.2.00.0050.00817.88
7.1.330.0070.00715.68
7.1.320.0040.00715.59
7.1.310.0060.00615.71
7.1.300.0000.01115.66
7.1.290.0120.00015.57
7.1.280.0030.01015.75
7.1.270.0150.00015.68
7.1.260.0070.01015.68
7.1.250.0040.01115.46
7.1.200.0000.01015.51
7.1.100.0120.00918.11
7.1.70.0030.00616.91
7.1.60.0110.00017.19
7.1.50.0100.01016.86
7.1.00.0030.06322.34
7.0.200.0170.00314.75
7.0.130.0030.06022.11
7.0.120.0170.05722.13
7.0.110.0100.05721.99
7.0.100.0100.05322.16
7.0.90.0170.07022.18
7.0.80.0170.06722.18
7.0.70.0070.06021.97
7.0.60.0130.07322.05
7.0.50.0070.05722.16
7.0.40.0070.06722.02
7.0.30.0530.05720.19
7.0.20.0530.04720.20
7.0.10.0530.08020.37
7.0.00.0530.05020.20
5.6.280.0070.05720.93
5.6.270.0130.07721.04
5.6.260.0070.06321.11
5.6.250.0170.05321.03
5.6.240.0170.06020.95
5.6.230.0170.07720.81
5.6.220.0070.06721.11
5.6.210.0130.05720.84
5.6.200.0030.06320.77
5.6.190.0200.07320.99
5.6.180.0130.05320.86
5.6.170.0130.05320.73
5.6.160.0130.06320.84
5.6.150.0170.06020.87
5.6.140.0100.06721.02
5.6.130.0230.04321.02
5.6.120.0100.05720.81
5.6.110.0170.05320.85
5.6.100.0070.06020.71
5.6.90.0130.05021.03
5.6.80.0100.05020.43
5.6.70.0230.04720.36
5.6.60.0070.05720.14
5.6.50.0230.04020.40
5.6.40.0100.06020.17
5.6.30.0100.08020.38
5.6.20.0030.08720.22
5.6.10.0100.05020.41
5.6.00.0130.07320.34

preferences:
44.04 ms | 401 KiB | 5 Q