3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; // pre-calculated hash using PHP 5.4 and the new flag $2y$ $hash = '$2y$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG'; if (version_compare(PHP_VERSION, '5.3.7', '<')) { $hash = str_replace('$2y$','$2a$', $hash); echo "Changed the 2y in 2a\n"; } if ($hash === crypt($password, $hash)) { echo "OK!\n"; } else { echo "ERROR\n"; }

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)
8.3.60.0100.09818.43
8.3.50.0100.11421.08
8.3.40.0100.11918.44
8.3.30.0030.10418.71
8.3.20.0070.05218.56
8.3.10.0030.05521.10
8.3.00.0000.05821.90
8.2.180.0100.09916.38
8.2.170.0200.09522.96
8.2.160.0130.09420.42
8.2.150.0030.05524.18
8.2.140.0030.05624.66
8.2.130.0000.05826.16
8.2.120.0030.05521.05
8.2.110.0070.05321.13
8.2.100.0100.05817.84
8.2.90.0060.05819.17
8.2.80.0060.06117.97
8.2.70.0070.05917.63
8.2.60.0030.06217.80
8.2.50.0090.06018.07
8.2.40.0070.06018.22
8.2.30.0030.06121.20
8.2.20.0030.06117.59
8.2.10.0030.06117.69
8.2.00.0030.06617.70
8.1.280.0070.10125.92
8.1.270.0030.05523.99
8.1.260.0030.05726.35
8.1.250.0070.05128.09
8.1.240.0070.05221.27
8.1.230.0000.06817.44
8.1.220.0060.05817.76
8.1.210.0070.06018.77
8.1.200.0040.06317.23
8.1.190.0000.06417.23
8.1.180.0000.06518.10
8.1.170.0100.05518.56
8.1.160.0000.06418.83
8.1.150.0000.06418.61
8.1.140.0030.06117.37
8.1.130.0100.05417.69
8.1.120.0000.06417.38
8.1.110.0060.05817.34
8.1.100.0060.05817.36
8.1.90.0000.06417.24
8.1.80.0000.06417.29
8.1.70.0030.06017.26
8.1.60.0000.06517.53
8.1.50.0000.06417.39
8.1.40.0000.06417.31
8.1.30.0000.06417.59
8.1.20.0000.06617.54
8.1.10.0070.05717.48
8.1.00.0060.06717.43
8.0.300.0100.05618.77
8.0.290.0000.06616.63
8.0.280.0000.06418.44
8.0.270.0030.06117.29
8.0.260.0030.06116.82
8.0.250.0030.06116.95
8.0.240.0030.06116.87
8.0.230.0030.06016.77
8.0.220.0030.06016.72
8.0.210.0000.06416.90
8.0.200.0030.06116.79
8.0.190.0030.06116.80
8.0.180.0030.06016.75
8.0.170.0000.06416.86
8.0.160.0030.06416.76
8.0.150.0000.06516.74
8.0.140.0000.06616.80
8.0.130.0030.05913.18
8.0.120.0030.06116.78
8.0.110.0070.05716.68
8.0.100.0030.06116.70
8.0.90.0060.05716.73
8.0.80.0070.09616.77
8.0.70.0030.06116.79
8.0.60.0100.05816.86
8.0.50.0030.06116.69
8.0.30.0100.09017.07
8.0.20.0030.09417.40
8.0.10.0070.06016.94
8.0.00.0070.09216.70
7.4.330.0000.06114.78
7.4.320.0030.06016.45
7.4.300.0000.06316.59
7.4.290.0000.06516.52
7.4.280.0070.05716.50
7.4.270.0030.06216.52
7.4.260.0030.05813.26
7.4.250.0030.06316.61
7.4.240.0000.06316.61
7.4.230.0000.06316.71
7.4.220.0030.11516.64
7.4.210.0060.09716.53
7.4.200.0030.06216.68
7.4.190.0070.06316.74
7.4.160.0100.09916.33
7.4.150.0130.08417.40
7.4.140.0050.09317.86
7.4.130.0110.09216.50
7.4.120.0060.09316.48
7.4.110.0100.08816.31
7.4.100.0130.08316.31
7.4.90.0160.09216.34
7.4.80.0060.09419.39
7.4.70.0100.09016.53
7.4.60.0090.08716.36
7.4.50.0030.04416.57
7.4.40.0130.06322.77
7.4.30.0100.08616.43
7.4.00.0080.07014.96
7.3.330.0030.05912.95
7.3.320.0030.05813.11
7.3.310.0030.06016.08
7.3.300.0000.06316.06
7.3.290.0030.09516.20
7.3.280.0120.09716.22
7.3.270.0100.08617.40
7.3.260.0110.08918.24
7.3.250.0100.08716.38
7.3.240.0130.08816.34
7.3.230.0100.09416.48
7.3.210.0160.08416.43
7.3.200.0130.09619.39
7.3.190.0130.08316.36
7.3.180.0100.08416.34
7.3.170.0090.08816.27
7.3.160.0130.09316.45
7.3.120.0080.06814.79
7.3.110.0050.07315.03
7.3.100.0050.07014.96
7.3.90.0050.07114.85
7.3.80.0080.06814.71
7.3.70.0030.07214.78
7.3.60.0030.07114.82
7.3.50.0000.07314.58
7.3.40.0030.07014.81
7.3.30.0050.07114.80
7.3.20.0030.07416.46
7.3.10.0030.07116.71
7.3.00.0070.06916.45
7.2.330.0140.09016.64
7.2.320.0100.09616.30
7.2.310.0160.08716.59
7.2.300.0100.08916.65
7.2.290.0030.09116.30
7.2.250.0070.07214.61
7.2.240.0030.07515.08
7.2.230.0050.07014.99
7.2.220.0020.07415.15
7.2.210.0030.07414.86
7.2.200.0050.06915.03
7.2.190.0080.06814.87
7.2.180.0070.06714.78
7.2.170.0080.06815.03
7.2.160.0030.07515.03
7.2.150.0030.07216.79
7.2.140.0040.07616.86
7.2.130.0100.06516.92
7.2.120.0070.07016.64
7.2.110.0130.06716.92
7.2.100.0100.07216.61
7.2.90.0130.06616.86
7.2.80.0230.07016.85
7.2.70.0070.06817.04
7.2.60.0070.06916.69
7.2.50.0070.07416.86
7.2.40.0130.06516.63
7.2.30.0100.06516.70
7.2.20.0030.07517.00
7.2.10.0070.06916.90
7.2.00.0070.07217.88
7.1.330.0050.07015.69
7.1.320.0070.06815.76
7.1.310.0070.06715.77
7.1.300.0070.06815.77
7.1.290.0100.06315.86
7.1.280.0030.07515.75
7.1.270.0050.06915.54
7.1.260.0210.06315.69
7.1.250.0070.06815.77
7.1.200.0030.06915.88
7.1.100.0030.07317.92
7.1.70.0000.12317.02
7.1.60.0100.11219.40
7.1.50.0000.12816.99
7.1.00.0030.15022.44
7.0.200.0070.06516.54
7.0.140.0030.16022.07
7.0.60.0130.16319.88
7.0.50.0030.10717.86
7.0.40.0030.14717.66
7.0.30.0030.11717.66
7.0.20.0030.10317.68
7.0.10.0030.09717.79
7.0.00.0030.10017.71
5.6.280.0070.16020.90
5.6.210.0170.12720.70
5.6.200.0100.14718.16
5.6.190.0030.15718.09
5.6.180.0100.15018.16
5.6.170.0030.10318.12
5.6.160.0030.09718.17
5.6.150.0000.10018.11
5.6.140.0100.10718.14
5.6.130.0130.15018.14
5.6.120.0030.12018.11
5.6.110.0070.09718.20
5.6.100.0030.10018.11
5.6.90.0030.10018.19
5.6.80.0000.11317.57
5.6.70.0170.10317.59
5.6.60.0070.09317.56
5.6.50.0070.09317.51
5.6.40.0130.15317.56
5.6.30.0070.13717.44
5.6.20.0100.09717.54
5.6.10.0100.09317.47
5.6.00.0100.14017.56
5.5.350.0030.14720.44
5.5.340.0070.11017.99
5.5.330.0130.15318.02
5.5.320.0030.10017.91
5.5.310.0000.10317.95
5.5.300.0130.15717.96
5.5.290.0130.11317.91
5.5.280.0030.11318.02
5.5.270.0030.10017.89
5.5.260.0000.10317.90
5.5.250.0000.10317.79
5.5.240.0030.09717.41
5.5.230.0270.09717.33
5.5.220.0100.10317.29
5.5.210.0170.10717.28
5.5.200.0030.10017.27
5.5.190.0070.15317.36
5.5.180.0030.10717.33
5.5.160.0030.13717.30
5.5.150.0100.12017.35
5.5.140.0070.12317.36
5.5.130.0030.12317.35
5.5.120.0070.15717.35
5.5.110.0170.16017.37
5.5.100.0030.16317.24
5.5.90.0100.15317.16
5.5.80.0070.16017.14
5.5.70.0030.11317.16
5.5.60.0030.10317.21
5.5.50.0030.16317.22
5.5.40.0030.10017.15
5.5.30.0070.11717.24
5.5.20.0030.15017.24
5.5.10.0100.16017.25
5.5.00.0030.10017.21
5.4.450.0130.10019.36
5.4.440.0030.10719.15
5.4.430.0100.09019.41
5.4.420.0000.10319.40
5.4.410.0000.10019.18
5.4.400.0000.09719.04
5.4.390.0000.10018.99
5.4.380.0100.09018.82
5.4.370.0000.10019.12
5.4.360.0130.13319.20
5.4.350.0070.15319.02
5.4.340.0070.15718.89
5.4.320.0030.15719.20
5.4.310.0070.09718.99
5.4.300.0070.11319.12
5.4.290.0100.15318.89
5.4.280.0000.10719.07
5.4.270.0030.12019.11
5.4.260.0030.10019.03
5.4.250.0030.16718.89
5.4.240.0100.15319.09
5.4.230.0070.10718.81
5.4.220.0000.12718.96
5.4.210.0100.14718.88
5.4.200.0100.14718.96
5.4.190.0070.15719.11
5.4.180.0030.16018.97
5.4.170.0100.13319.11
5.4.160.0030.10718.99
5.4.150.0070.16019.03
5.4.140.0000.16016.18
5.4.130.0200.14716.21
5.4.120.0030.16316.33
5.4.110.0070.15716.29
5.4.100.0000.10016.23
5.4.90.0070.09316.25
5.4.80.0230.10316.51
5.4.70.0130.14716.24
5.4.60.0070.12016.21
5.4.50.0100.09716.26
5.4.40.0100.15716.46
5.4.30.0030.15316.20
5.4.20.0100.13016.20
5.4.10.0000.10316.24
5.4.00.0070.14015.69
5.3.290.0100.11714.63
5.3.280.0030.15014.53
5.3.270.0030.13014.68
5.3.260.0070.10014.52
5.3.250.0070.16014.48
5.3.240.0100.15314.54
5.3.230.0030.14314.54
5.3.220.0070.14014.49
5.3.210.0100.13314.54
5.3.200.0030.10014.48
5.3.190.0130.13014.55
5.3.180.0000.10014.53
5.3.170.0130.14714.52
5.3.160.0100.14314.64
5.3.150.0070.16314.52
5.3.140.0030.12014.38
5.3.130.0030.16014.36
5.3.120.0000.12714.48
5.3.110.0130.13014.54
5.3.100.0000.13013.97
5.3.90.0030.15714.00
5.3.80.0030.15714.00
5.3.70.0070.12313.98
5.3.60.0130.15314.07
5.3.50.0000.10713.91
5.3.40.0030.14313.72
5.3.30.0100.12313.86
5.3.20.0070.15713.67
5.3.10.0070.15013.60
5.3.00.0030.16713.41
5.2.170.0000.06311.08
5.2.160.0030.06311.05
5.2.150.0070.02711.06
5.2.140.0070.03711.06
5.2.130.0000.06711.02
5.2.120.0000.06710.97
5.2.110.0000.06010.93
5.2.100.0030.05010.98
5.2.90.0200.05011.01
5.2.80.0070.05311.00
5.2.70.0100.06010.91
5.2.60.0030.06010.89
5.2.50.0070.06310.94
5.2.40.0000.04310.94
5.2.30.0030.04010.80
5.2.20.0000.06311.02
5.2.10.0000.03710.91
5.2.00.0000.06310.76
5.1.60.0030.0379.89
5.1.50.0070.0309.83
5.1.40.0100.02010.00
5.1.30.0000.03010.28
5.1.20.0070.04310.27
5.1.10.0130.04310.11
5.1.00.0000.03310.04
5.0.50.0070.0478.50
5.0.40.0070.0378.37
5.0.30.0030.0578.21
5.0.20.0030.0378.23
5.0.10.0030.0478.07
5.0.00.0070.0638.21
4.4.90.0030.0337.73
4.4.80.0000.0237.73
4.4.70.0000.0407.73
4.4.60.0030.0307.73
4.4.50.0030.0337.73
4.4.40.0100.0337.73
4.4.30.0070.0207.73
4.4.20.0000.0277.73
4.4.10.0030.0237.73
4.4.00.0030.0277.73
4.3.110.0000.0337.73
4.3.100.0100.0307.73
4.3.90.0000.0237.73
4.3.80.0000.0537.73
4.3.70.0000.0337.73
4.3.60.0070.0277.73
4.3.50.0000.0307.73
4.3.40.0030.0377.73
4.3.30.0000.0377.73
4.3.20.0000.0307.73
4.3.10.0030.0337.73
4.3.00.0030.0177.73

preferences:
64.02 ms | 401 KiB | 5 Q