3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'foobar'; $salt = 'qwertzuiopasdfghjklyxc'; $hash = password_hash($password, PASSWORD_BCRYPT, [ 'salt' => $salt, ]); $froxlor_pwd_salt = str_replace(substr(strrchr($hash, "$"), 1), "", $hash); $froxlor_pwd_check = crypt($password, $froxlor_pwd_salt); $my_pwd_check = crypt($password, $froxlor_pwd_salt . $salt); printf("Password hashed (db): %s\n used salt: %s\n ---\n Froxlor password salt: %s\n Froxlor password check: %s\n ---\n My password check: %s", $hash, $salt, $froxlor_pwd_salt, $froxlor_pwd_check, $my_pwd_check);

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.100.0070.17914.77
7.3.90.0030.18114.40
7.3.80.0160.17014.75
7.3.70.0130.18314.50
7.3.60.0130.14414.54
7.3.50.0030.15314.72
7.3.40.0080.16214.78
7.3.30.0050.15214.68
7.3.20.0130.14615.62
7.3.10.0350.13515.25
7.3.00.0300.14515.40
7.2.230.0070.18914.81
7.2.220.0060.18215.11
7.2.210.0070.19515.01
7.2.200.0170.17714.84
7.2.190.0130.14914.80
7.2.180.0100.14914.95
7.2.170.0070.15114.95
7.2.160.0080.14914.89
7.2.150.0130.14515.85
7.2.140.0100.14715.73
7.2.130.0260.13615.51
7.2.120.0310.14915.49
7.2.110.0280.13815.75
7.2.100.0230.14715.65
7.2.90.0250.14115.61
7.2.80.0310.13815.61
7.2.70.0240.13315.59
7.2.60.0180.14215.90
7.2.50.0220.14015.61
7.2.40.0310.13915.62
7.2.30.0250.14315.53
7.2.20.0290.14615.61
7.2.10.0300.14815.63
7.2.00.0210.13916.48
7.1.320.0070.18115.50
7.1.310.0070.17815.63
7.1.300.0070.15414.77
7.1.290.0100.15014.92
7.1.280.0030.14914.79
7.1.270.0100.14614.81
7.1.260.0070.15414.75
7.1.250.0310.13914.65
7.1.240.0290.15314.52
7.1.230.0310.14114.34
7.1.220.0340.14314.65
7.1.210.0260.14514.47
7.1.200.0210.14314.82
7.1.190.0270.14314.54
7.1.180.0280.14014.59
7.1.170.0260.14614.46
7.1.160.0270.14214.44
7.1.150.0310.14914.64
7.1.140.0320.14214.55
7.1.130.0310.14514.44
7.1.120.0420.13714.49
7.1.110.0260.14214.57
7.1.100.0160.14515.43
7.1.90.0210.14614.39
7.1.80.0290.14014.49
7.1.70.0220.13815.23
7.1.60.0180.15615.75
7.1.50.0210.15319.52
7.1.40.0260.14214.46
7.1.30.0220.15114.50
7.1.20.0200.14414.54
7.1.10.0250.14214.53
7.1.00.0220.16516.31
7.0.330.0280.14514.22
7.0.320.0860.14914.10
7.0.310.0360.14014.26
7.0.300.0340.14414.20
7.0.290.0290.14414.15
7.0.280.0740.14414.20
7.0.270.0280.14514.16
7.0.260.0290.14314.19
7.0.250.0270.14114.21
7.0.240.0430.13614.10
7.0.230.0290.14314.28
7.0.220.0270.14714.05
7.0.210.0240.14414.14
7.0.200.0430.13514.29
7.0.190.0250.14214.17
7.0.180.0240.15514.17
7.0.170.0230.14514.32
7.0.160.0270.14814.04
7.0.150.0840.13814.22
7.0.140.0250.14114.16
7.0.130.0290.14314.27
7.0.120.0280.14514.13
7.0.110.0210.14414.22
7.0.100.0270.14414.03
7.0.90.0230.14814.04
7.0.80.0220.14114.21
7.0.70.0280.14114.23
7.0.60.0760.10215.53
7.0.50.0720.11115.72
7.0.40.0740.11415.64
7.0.30.0910.10415.76
7.0.20.0840.10615.74
7.0.10.0780.10315.77
7.0.00.0760.10815.75
5.6.400.0110.14714.30
5.6.390.0080.16314.16
5.6.380.0160.14114.27
5.6.370.0110.14214.39
5.6.360.0100.14414.30
5.6.350.0190.14614.37
5.6.340.0190.14713.97
5.6.330.0150.15414.26
5.6.320.0190.14114.43
5.6.310.0180.14014.08
5.6.300.0110.14614.40
5.6.290.0090.14814.47
5.6.280.0200.16516.00
5.6.270.0110.14514.23
5.6.260.0140.14214.06
5.6.250.0140.14614.00
5.6.240.0090.14314.27
5.6.230.0160.14214.31
5.6.220.0180.14014.32
5.6.210.0740.10815.77
5.6.200.0750.11115.97
5.6.190.0710.11115.79
5.6.180.0740.11215.97
5.6.170.0700.10615.91
5.6.160.0730.11115.88
5.6.150.0680.11216.03
5.6.140.0700.11115.89
5.6.130.0760.11515.79
5.6.120.0740.11615.89
5.6.110.0730.10715.98
5.6.100.0740.11815.88
5.6.90.0730.11015.95
5.6.80.0720.10515.78
5.6.70.0690.10915.64
5.6.60.0720.10515.71
5.6.50.0680.11515.63
5.6.40.0670.11215.70
5.6.30.0650.11115.75
5.6.20.0650.11115.64
5.6.10.0750.10915.83
5.6.00.0700.10815.72
5.5.380.0120.14213.13
5.5.370.0120.15513.18
5.5.360.0130.13813.09
5.5.350.0710.11214.92
5.5.340.0760.10714.99
5.5.330.0680.10914.98
5.5.320.0670.10715.06
5.5.310.0690.11014.95
5.5.300.0690.11315.14
5.5.290.0720.09215.08
5.5.280.0640.10915.03
5.5.270.0670.11015.00
5.5.260.0710.10814.84
5.5.250.0740.10815.05
5.5.240.0740.10614.92
5.5.230.0660.11214.85
5.5.220.0650.10714.82
5.5.210.0680.10614.84
5.5.200.0650.11314.92
5.5.190.0640.11314.79
5.5.180.0720.11214.90
5.5.170.0100.14113.07
5.5.160.0660.10714.96
5.5.150.0670.10614.80
5.5.140.0660.11014.81
5.5.130.0690.10414.73
5.5.120.0720.11514.63
5.5.110.0660.11414.88
5.5.100.0790.10614.74
5.5.90.0640.10914.88
5.5.80.0720.11114.91
5.5.70.0680.11014.78
5.5.60.0650.11314.65
5.5.50.0680.10714.79
5.5.40.0730.10014.72
5.5.30.0680.10714.83
5.5.20.0700.10314.72
5.5.10.0740.11114.66
5.5.00.0690.11314.93

preferences:
45.91 ms | 401 KiB | 5 Q