3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; $hashes = array(); $salts = array('BCRYPT' => '$2a$04$1234567890123456789012', 'SHA256' => '$5$rounds=1000$usesomesillystringforsalt$','SHA512' => '$6$rounds=1000$usesomesillystringforsalt$', 'MD5' => '$1$rasmusle$'); foreach ($salts as $algo => $salt) { do { $str .= '0'; $hashes[] = crypt($str, $salt); if (count(array_unique($hashes)) === count($hashes)) $allUnique = true; else $allUnique = false; } while($allUnique); echo "Stopped at " . strlen($str) . " characters for salt $algo before truncation was detected...\n\n"; $lst = array_pop($hashes); $stl = array_pop($hashes); echo "$stl\n$lst"; }

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.0101.99218.43
8.3.50.0101.99621.08
8.3.40.0071.99818.83
8.3.30.0101.99220.35
8.3.20.0031.99820.38
8.3.10.0031.99722.10
8.3.00.0071.99822.52
8.2.180.0101.99416.63
8.2.170.0071.99822.96
8.2.160.0031.99822.12
8.2.150.0071.99724.18
8.2.140.0101.99124.66
8.2.130.0031.99826.16
8.2.120.0032.00021.00
8.2.110.0071.99722.16
8.2.100.0171.97517.83
8.2.90.0072.00019.23
8.2.80.0031.99919.37
8.2.70.0002.00317.75
8.2.60.0101.98917.93
8.2.50.0002.00218.07
8.2.40.0031.99819.95
8.2.30.0001.99919.61
8.2.20.0071.99817.96
8.2.10.0101.99217.90
8.2.00.0031.99918.04
8.1.280.0131.98825.92
8.1.270.0171.98723.99
8.1.260.0031.99926.35
8.1.250.0071.99728.09
8.1.240.0032.00123.92
8.1.230.0032.00119.34
8.1.220.0071.99917.91
8.1.210.0071.99518.77
8.1.200.0071.99717.38
8.1.190.0032.00017.66
8.1.180.0002.00219.01
8.1.170.0032.00018.96
8.1.160.0032.00019.19
8.1.150.0071.99218.82
8.1.140.0031.99917.79
8.1.130.0031.99918.08
8.1.120.0032.00017.70
8.1.110.0071.99617.69
8.1.100.0002.00317.59
8.1.90.0032.00017.63
8.1.80.0071.99617.68
8.1.70.0031.99817.61
8.1.60.0032.00117.73
8.1.50.0071.99617.81
8.1.40.0002.00317.84
8.1.30.0002.00217.79
8.1.20.0071.99617.84
8.1.10.0002.00317.80
8.1.00.0171.98617.68
8.0.300.0002.00318.77
8.0.290.0032.00217.18
8.0.280.0071.99418.59
8.0.270.0002.00317.39
8.0.260.0071.99416.88
8.0.250.0032.00117.02
8.0.240.0002.00317.02
8.0.230.0002.00317.05
8.0.220.0032.00017.04
8.0.210.0032.00016.84
8.0.200.0002.00417.16
8.0.190.0071.99717.01
8.0.180.0031.99917.04
8.0.170.0031.99817.01
8.0.160.0002.00317.16
8.0.150.0032.00116.95
8.0.140.0031.99716.98
8.0.130.0002.00413.59
8.0.120.0032.00216.98
8.0.110.0071.99617.00
8.0.100.0071.99517.09
8.0.90.0031.99916.88
8.0.80.0191.98216.94
8.0.70.0101.99316.84
8.0.60.0071.99516.86
8.0.50.0032.00116.97
8.0.30.0131.98617.03
8.0.20.0111.98217.42
8.0.10.0071.99516.91
8.0.00.0101.99216.93
7.4.330.0031.99615.00
7.4.320.0031.99916.64
7.4.300.0032.00016.62
7.4.290.0032.00016.60
7.4.280.0401.95716.61
7.4.270.0501.95416.54
7.4.260.0002.00013.38
7.4.250.0071.99716.60
7.4.240.0002.00216.64
7.4.230.0002.00316.66
7.4.220.0101.99316.68
7.4.210.0101.98616.64
7.4.200.0101.99416.66
7.4.190.0071.99516.73
7.4.160.0171.98216.71
7.4.150.0101.98917.40
7.4.140.0131.99017.86
7.4.130.0131.98216.61
7.4.120.0081.98916.54
7.4.110.0132.47316.45
7.4.100.0002.47116.67
7.4.90.0132.42516.48
7.4.80.0422.12419.39
7.4.70.0452.27716.64
7.4.60.0102.47416.59
7.4.50.0132.48616.50
7.4.40.0082.48422.77
7.4.30.0102.45716.65
7.4.00.0032.49315.00
7.3.330.0031.99813.45
7.3.320.0071.99513.44
7.3.310.0101.99116.39
7.3.300.0031.99816.55
7.3.290.0161.97716.46
7.3.280.0101.99016.30
7.3.270.0261.97317.40
7.3.260.0061.99416.52
7.3.250.0131.98216.23
7.3.240.0481.93616.32
7.3.230.0322.36516.39
7.3.210.0172.44916.62
7.3.200.0132.46119.39
7.3.190.0172.43216.29
7.3.180.0192.46016.52
7.3.170.0102.47216.56
7.3.160.0162.42816.60
7.3.120.0072.48514.81
7.2.330.0102.45716.82
7.2.320.0132.44916.55
7.2.310.0232.43916.74
7.2.300.0262.37616.95
7.2.290.0232.38016.74
7.2.00.0202.48119.06
7.1.100.0072.49417.94
7.1.70.0072.49316.83
7.1.60.0072.49517.45
7.1.50.0132.48816.70
7.1.00.0072.49322.24
7.0.200.1232.37717.04
7.0.140.0032.49722.13
7.0.100.0172.48320.17
7.0.90.0172.48320.21
7.0.80.0172.48320.19
7.0.70.0072.45720.10
7.0.60.0032.47720.10
7.0.50.0132.46020.49
7.0.40.0072.45020.11
7.0.30.0072.49320.08
7.0.20.0032.48320.05
7.0.10.0072.49320.13
7.0.00.0102.49020.14
5.6.280.0132.48721.23
5.6.250.0202.48020.89
5.6.240.0072.49320.85
5.6.230.0002.50020.86
5.6.220.0132.43320.87
5.6.210.0072.43021.01
5.6.200.0102.45721.25
5.6.190.0002.48721.31
5.6.180.0102.49021.35
5.6.170.0002.50021.31
5.6.160.0072.49321.25
5.6.150.0102.49021.30
5.6.140.0032.49721.18
5.6.130.0102.49021.26
5.6.120.0132.48721.33
5.6.110.0172.48321.27
5.6.100.0032.49721.27
5.6.90.0102.49021.25
5.6.80.0202.48020.64
5.6.70.0002.49020.75
5.6.60.0032.49720.77
5.6.50.0102.49020.79
5.6.40.0072.49320.55
5.6.30.0072.49320.71
5.6.20.0102.49020.65
5.6.10.0072.49320.67
5.6.00.0132.48720.75
5.5.380.0032.49720.76
5.5.370.0072.49320.59
5.5.360.0102.49020.79
5.5.350.0272.45720.67
5.5.340.0072.49320.96
5.5.330.0032.49721.13
5.5.320.0072.49321.02
5.5.310.0102.49021.09
5.5.300.0032.49721.10
5.5.290.0072.49321.09
5.5.280.0032.49721.10
5.5.270.0172.48320.99
5.5.260.0002.50021.14
5.5.250.0132.48720.92
5.5.240.0002.50020.46
5.5.230.0032.49720.49
5.5.220.0102.49020.53
5.5.210.0102.49020.44
5.5.200.0002.50020.35
5.5.190.0072.49320.46
5.5.180.0072.49320.36
5.5.160.0032.49720.49
5.5.150.2002.29720.31
5.5.140.0032.49720.41
5.5.130.0002.50020.36
5.5.120.0002.50020.23
5.5.110.0102.49020.38
5.5.100.0002.50020.33
5.5.90.0072.49320.18
5.5.80.0072.49320.23
5.5.70.0072.49320.34
5.5.60.0102.49020.29
5.5.50.0032.49720.31
5.5.40.0072.49320.15
5.5.30.0002.40720.39
5.5.20.0132.44320.28
5.5.10.0032.49720.18
5.5.00.0132.48720.34
5.4.450.0072.49319.34
5.4.440.0102.49019.45
5.4.430.0072.49319.44
5.4.420.0172.48319.63
5.4.410.0072.49319.30
5.4.400.0072.49319.19
5.4.390.0032.49719.22
5.4.380.0002.50019.11
5.4.370.0002.50019.11
5.4.360.0072.49319.32
5.4.350.0172.48318.99
5.4.340.0032.49719.13
5.4.320.0002.50019.16
5.4.310.0102.49019.31
5.4.300.0072.49319.21
5.4.290.0102.49019.17
5.4.280.0002.50019.23
5.4.270.0032.49719.15
5.4.260.0032.49719.28
5.4.250.0132.48719.19
5.4.240.0072.49319.15
5.4.230.0002.50019.11
5.4.220.0002.50019.16
5.4.210.0072.49319.12
5.4.200.0032.49719.09
5.4.190.0072.42319.11
5.4.180.0032.48319.12
5.4.170.0102.49019.28
5.4.160.0072.49319.09
5.4.150.0102.49019.25
5.4.140.0102.46016.55
5.4.130.0032.46716.50
5.4.120.0072.49316.49
5.4.110.0002.48016.56
5.4.100.0132.48716.44
5.4.90.0072.49316.48
5.4.80.0032.49716.61
5.4.70.0132.48716.39
5.4.60.0032.49716.45
5.4.50.0072.49316.61
5.4.40.0072.49316.54
5.4.30.0102.49016.59
5.4.20.0032.49716.43
5.4.10.0102.49016.61
5.4.00.0102.47316.02
5.3.290.0002.50014.54
5.3.280.0102.49014.57
5.3.270.0032.45314.63
5.3.260.0032.49714.63
5.3.250.0102.49014.54
5.3.240.0002.48014.66
5.3.230.0072.49314.52
5.3.220.0072.49314.63
5.3.210.0072.49314.48
5.3.200.0072.49314.63
5.3.190.0002.50014.65
5.3.180.0832.41714.56
5.3.170.0032.49714.59
5.3.160.0102.49014.43
5.3.150.0072.49314.63
5.3.140.0102.49014.61
5.3.130.0132.48714.63
5.3.120.0072.49314.62
5.3.110.0102.49014.57
5.3.100.0072.49314.12
5.3.90.0102.49014.08
5.3.80.0132.48714.00
5.3.70.0032.49714.04
5.3.60.0102.49013.87
5.3.50.1932.30313.79
5.3.40.0072.49313.78
5.3.30.0072.49313.84
5.3.20.0072.49313.68
5.3.10.0032.49713.79
5.3.00.0032.49713.81
5.2.170.0030.05711.54
5.2.160.0030.07011.54
5.2.150.0070.02711.54
5.2.140.0130.03311.54
5.2.130.0100.05011.54
5.2.120.0070.02311.54
5.2.110.0130.05311.00
5.2.100.0070.05711.00
5.2.90.0030.06010.96
5.2.80.0030.03310.97
5.2.70.0000.06310.94
5.2.60.0070.06710.98
5.2.50.0030.05310.89
5.2.40.0070.05710.87
5.2.30.0100.05710.88
5.2.20.0000.04710.93
5.2.10.0130.05310.82
5.2.00.0100.05710.77
5.1.60.0030.05010.08
5.1.50.0030.03710.04
5.1.40.0030.05310.05
5.1.30.0070.04710.40
5.1.20.0000.05710.27
5.1.10.0030.05310.07
5.1.00.0070.05010.12
5.0.50.0000.04310.12
5.0.40.0030.04310.15
5.0.30.0070.06010.15
5.0.20.0100.02010.15
5.0.10.0030.04010.15
5.0.00.0030.06010.15
4.4.90.0070.03010.01
4.4.80.0000.03710.01
4.4.70.0030.03710.01
4.4.60.0000.03310.02
4.4.50.0030.03710.02
4.4.40.0000.05310.04
4.4.30.0000.03010.05
4.4.20.0030.03310.07
4.4.10.0070.03010.11
4.4.00.0000.06010.14
4.3.110.0070.03010.15
4.3.100.0030.03010.15
4.3.90.0000.03710.15
4.3.80.0000.05710.15
4.3.70.0070.03010.15
4.3.60.0000.02710.15
4.3.50.0030.03010.15
4.3.40.0030.04710.15
4.3.30.0000.02310.15
4.3.20.0000.03310.15
4.3.10.0000.03710.18
4.3.00.0030.02710.19

preferences:
45.09 ms | 401 KiB | 5 Q