3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; $hashes = array(); do { $str .= '0'; $hashes[] = crypt($str, '$2a$10$1234567890123456789012'); if (count(array_unique($hashes)) === count($hashes)) $allUnique = true; else $allUnique = false; } while($allUnique); echo "Stopped at " . strlen($str) . " characters 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.0071.99718.15
8.3.50.0181.98521.02
8.3.40.0071.99618.75
8.3.30.0032.00020.29
8.3.20.0031.99820.39
8.3.10.0101.99221.93
8.3.00.0171.98922.52
8.2.180.0101.99416.35
8.2.170.0231.97922.96
8.2.160.0131.98922.11
8.2.150.0101.99224.18
8.2.140.0071.99724.66
8.2.130.0101.99326.16
8.2.120.0101.99221.21
8.2.110.0071.99722.02
8.2.100.0101.99317.72
8.2.90.0002.00218.98
8.2.80.0031.99819.33
8.2.70.0071.99617.63
8.2.60.0071.99617.80
8.2.50.0031.99818.07
8.2.40.0031.99819.94
8.2.30.0001.99919.52
8.2.20.0002.00317.86
8.2.10.0031.99817.71
8.2.00.0002.00217.82
8.1.280.0131.99425.92
8.1.270.0071.99723.99
8.1.260.0071.99726.35
8.1.250.0002.00228.09
8.1.240.0101.99224.02
8.1.230.0031.99719.08
8.1.220.0002.00317.74
8.1.210.0031.99818.77
8.1.200.0071.99417.35
8.1.190.0002.00217.40
8.1.180.0032.00118.99
8.1.170.0002.01618.70
8.1.160.0032.00318.94
8.1.150.0061.98318.71
8.1.140.0071.99417.49
8.1.130.0002.00417.89
8.1.120.0071.99617.53
8.1.110.0031.99917.57
8.1.100.0031.99917.60
8.1.90.0031.99917.52
8.1.80.0061.99517.59
8.1.70.0071.99517.54
8.1.60.0031.99917.54
8.1.50.0071.99617.61
8.1.40.0071.99717.64
8.1.30.0071.99717.52
8.1.20.0032.00017.51
8.1.10.0031.99917.56
8.1.00.0002.00417.41
8.0.300.0101.99118.77
8.0.290.0031.99917.04
8.0.280.0002.00218.32
8.0.270.0002.00317.02
8.0.260.0032.00418.32
8.0.250.0031.99816.79
8.0.240.0031.99816.85
8.0.230.0031.99916.84
8.0.220.0031.99716.80
8.0.210.0032.00116.76
8.0.200.0101.99316.86
8.0.190.0101.99216.71
8.0.180.0031.99716.84
8.0.170.0032.00016.79
8.0.160.0002.00316.89
8.0.150.0002.00216.78
8.0.140.0002.00316.79
8.0.130.0031.99813.26
8.0.120.0032.00116.80
8.0.110.0002.00716.74
8.0.100.0031.99816.80
8.0.90.0002.00216.87
8.0.80.0161.98216.80
8.0.70.0031.99816.75
8.0.60.0031.99816.80
8.0.50.0031.99816.63
8.0.30.0101.98816.78
8.0.20.0151.98617.40
8.0.10.0002.00416.91
8.0.00.0052.00016.63
7.4.330.0002.00215.00
7.4.320.0032.00016.36
7.4.300.0031.99816.38
7.4.290.0101.99116.47
7.4.280.0031.99916.49
7.4.270.0032.00216.50
7.4.260.0301.95513.18
7.4.250.0031.99916.26
7.4.240.0002.00316.38
7.4.230.0231.97516.27
7.4.220.0161.98716.44
7.4.210.0201.98216.41
7.4.200.0002.00316.50
7.4.190.0101.99516.36
7.4.160.0101.98816.41
7.4.150.0101.98317.40
7.4.140.0131.98517.86
7.4.130.0081.98916.41
7.4.120.0191.98016.46
7.4.110.0172.46216.42
7.4.100.0162.43716.36
7.4.90.0132.41816.38
7.4.80.0262.28219.39
7.4.70.0102.43116.36
7.4.60.0102.46116.33
7.4.50.0002.49916.65
7.4.40.0072.49222.77
7.4.30.0132.41916.49
7.4.00.0072.49115.12
7.3.330.0002.00013.20
7.3.320.0032.00013.07
7.3.310.0002.00316.33
7.3.300.0031.99816.10
7.3.290.0071.99416.14
7.3.280.0201.97916.15
7.3.270.0191.96617.40
7.3.260.0161.98816.13
7.3.250.0231.99016.24
7.3.240.0201.97916.45
7.3.230.0332.34716.39
7.3.210.0102.44916.26
7.3.200.0162.43819.39
7.3.190.0352.41216.20
7.3.180.0102.46416.05
7.3.170.0132.44616.33
7.3.160.0262.37416.10
7.3.120.0032.49214.91
7.2.330.0132.46416.30
7.2.320.0232.34816.59
7.2.310.0092.45616.23
7.2.300.0132.44416.60
7.2.290.0202.43816.41
7.2.00.0072.49419.31
7.1.100.0002.50117.80
7.1.70.0032.49816.95
7.1.60.0102.49119.32
7.1.50.0102.49117.04
7.1.00.0032.49722.36
7.0.200.0002.50116.96
7.0.140.0002.50022.06
7.0.60.0072.49321.84
7.0.50.0072.49317.86
7.0.40.0032.49719.70
7.0.30.0202.48019.89
7.0.20.0272.47319.74
7.0.10.0202.48019.73
7.0.00.0102.49019.75
5.6.280.0032.49720.91
5.6.210.0102.49020.71
5.6.200.0102.49018.02
5.6.190.0002.50020.41
5.6.180.0502.45020.38
5.6.170.0172.48320.38
5.6.160.0002.50020.41
5.6.150.0102.49018.17
5.6.140.0002.50018.04
5.6.130.0102.49018.18
5.6.120.0072.49321.03
5.6.110.0032.49721.06
5.6.100.0102.49021.12
5.6.90.0202.48021.01
5.6.80.0072.49320.39
5.5.350.0372.39720.36
5.5.340.0232.41020.88
5.5.330.0272.43020.79
5.5.320.0432.33720.89
5.5.310.0072.45320.93
5.5.300.0232.44020.81
5.5.290.0332.45020.79
5.5.280.0272.40320.90
5.5.270.0402.42720.84
5.5.260.0232.46020.93
5.5.250.0272.45320.79
5.5.240.0232.42720.34
5.4.450.0232.41719.39
5.4.440.0172.39319.45
5.4.430.0102.41019.15
5.4.420.0132.45719.23
5.4.410.0232.39718.99
5.4.400.0272.43019.06
5.4.390.0432.42719.07
5.4.380.0132.44719.07
5.4.370.0302.43019.07
5.4.360.0172.42719.04
5.4.350.0202.44718.79
5.4.340.0032.44318.95
5.4.320.0102.47319.13
5.4.310.0172.38319.07
5.4.300.0232.42018.98
5.4.290.0172.45018.99
5.4.280.0132.43018.86
5.4.270.0302.44318.91
5.4.260.0132.43319.15
5.4.250.0172.44319.06
5.4.240.0192.33615.68
5.4.230.0112.33715.66
5.4.220.0222.32215.57
5.4.210.0222.30815.65
5.4.200.0182.30415.59
5.4.190.0112.34415.66
5.4.180.0222.31315.69
5.4.170.0122.35815.66
5.4.160.0152.31715.73
5.4.150.0122.35115.68
5.4.140.0132.33814.13
5.4.130.0082.32814.16
5.4.120.0202.33114.13
5.4.110.0152.30214.15
5.4.100.0112.33414.20
5.4.90.0132.34414.17
5.4.80.0102.33814.15
5.4.70.0222.34314.15
5.4.60.0142.32914.09
5.4.50.0222.32114.21
5.4.40.0192.33214.15
5.4.30.0102.34714.15
5.4.20.0222.33714.20
5.4.10.0142.34314.09
5.4.00.0122.35113.65
5.3.290.0132.41714.47
5.3.280.0052.33613.58
5.3.270.0102.34813.55
5.3.260.0122.33713.56
5.3.250.0142.33613.54
5.3.240.0232.34013.55
5.3.230.0232.32613.53
5.3.220.0102.35613.50
5.3.210.0122.32813.50
5.3.200.0182.32313.50
5.3.190.0112.34713.48
5.3.180.0132.35513.50
5.3.170.0142.34513.51
5.3.160.0112.34713.44
5.3.150.0112.33213.50
5.3.140.0102.31213.48
5.3.130.0192.34613.48
5.3.120.0142.31313.43
5.3.110.0302.27713.46
5.3.100.0182.31512.94
5.3.90.0192.34912.94
5.3.80.0142.32612.84
5.3.70.0142.31912.91
5.3.60.0212.34712.83
5.3.50.0062.34212.84
5.3.40.0082.35212.79
5.3.30.0162.31712.77
5.3.20.0162.34412.53
5.3.10.0122.33312.50
5.3.00.0122.35412.46
5.2.170.0090.0329.31
5.2.160.0090.0309.30
5.2.150.0070.0349.30
5.2.140.0070.0359.30
5.2.130.0050.0369.26
5.2.120.0070.0289.26
5.2.110.0090.0279.26
5.2.100.0070.0329.26
5.2.90.0070.0389.26
5.2.80.0070.0399.26
5.2.70.0030.0379.25
5.2.60.0020.0359.21
5.2.50.0040.0329.18
5.2.40.0040.0309.16
5.2.30.0050.0319.13
5.2.20.0070.0309.12
5.2.10.0050.0329.04
5.2.00.0050.0358.90
5.1.60.0030.0258.19
5.1.50.0030.0258.19
5.1.40.0060.0278.17
5.1.30.0040.0298.51
5.1.20.0050.0298.54
5.1.10.0050.0258.27
5.1.00.0050.0268.26
5.0.50.0040.0236.74
5.0.40.0040.0216.60
5.0.30.0020.0346.42
5.0.20.0030.0206.38
5.0.10.0040.0236.36
5.0.00.0040.0326.36
4.4.90.0030.0174.79
4.4.80.0020.0194.78
4.4.70.0040.0154.76
4.4.60.0020.0164.78
4.4.50.0030.0154.78
4.4.40.0040.0254.78
4.4.30.0030.0184.78
4.4.20.0020.0174.85
4.4.10.0040.0184.85
4.4.00.0040.0254.80
4.3.110.0030.0194.71
4.3.100.0020.0194.70
4.3.90.0030.0174.68
4.3.80.0020.0264.68
4.3.70.0030.0164.68
4.3.60.0020.0204.68
4.3.50.0040.0174.68
4.3.40.0040.0234.63
4.3.30.0020.0173.45
4.3.20.0010.0163.42
4.3.10.0010.0193.38
4.3.00.0030.0308.15

preferences:
43.43 ms | 401 KiB | 5 Q