3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; $hashes = array(); do { $str .= '0'; $hashes[] = crypt($str, '$2a$04$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.0130.12318.43
8.3.50.0020.13921.14
8.3.40.0100.12718.76
8.3.30.0130.12520.39
8.3.20.0130.08120.09
8.3.10.0070.09821.92
8.3.00.0030.07022.39
8.2.180.0070.13118.04
8.2.170.0030.13322.96
8.2.160.0030.13222.08
8.2.150.0070.06824.18
8.2.140.0070.08624.66
8.2.130.0130.09326.16
8.2.120.0070.06720.69
8.2.110.0070.07020.97
8.2.100.0070.07917.91
8.2.90.0030.08018.03
8.2.80.0000.08317.97
8.2.70.0030.07917.50
8.2.60.0000.08317.90
8.2.50.0000.08218.07
8.2.40.0030.08018.16
8.2.30.0030.07819.53
8.2.20.0000.08117.73
8.2.10.0000.08117.76
8.2.00.0070.07617.80
8.1.280.0030.16125.92
8.1.270.0070.07623.99
8.1.260.0070.06726.35
8.1.250.0000.07528.09
8.1.240.0000.07522.09
8.1.230.0070.07921.04
8.1.220.0070.07517.74
8.1.210.0070.07718.77
8.1.200.0000.08717.23
8.1.190.0000.08117.54
8.1.180.0030.08119.13
8.1.170.0030.08318.67
8.1.160.0000.08318.82
8.1.150.0030.09118.57
8.1.140.0000.08217.40
8.1.130.0030.07917.86
8.1.120.0000.08117.47
8.1.110.0000.08217.43
8.1.100.0000.08317.46
8.1.90.0070.07617.37
8.1.80.0100.07217.37
8.1.70.0000.08017.29
8.1.60.0030.07917.58
8.1.50.0030.07917.42
8.1.40.0060.07517.54
8.1.30.0030.07817.49
8.1.20.0030.07917.59
8.1.10.0000.08217.53
8.1.00.0030.08817.53
8.0.300.0070.07720.07
8.0.290.0030.08016.63
8.0.280.0030.07818.49
8.0.270.0000.08117.29
8.0.260.0000.08016.77
8.0.250.0070.07516.86
8.0.240.0030.07916.89
8.0.230.0000.08116.95
8.0.220.0030.07716.85
8.0.210.0070.07416.80
8.0.200.0070.08316.98
8.0.190.0070.07716.98
8.0.180.0000.08216.96
8.0.170.0000.08216.98
8.0.160.0000.08216.96
8.0.150.0060.07516.88
8.0.140.0100.07216.70
8.0.130.0070.07313.32
8.0.120.0030.07916.92
8.0.110.0030.07916.97
8.0.100.0000.08116.79
8.0.90.0030.07916.80
8.0.80.0170.11316.85
8.0.70.0030.07816.86
8.0.60.0070.07516.70
8.0.50.0030.07816.78
8.0.30.0100.11416.95
8.0.20.0110.11117.40
8.0.10.0070.07717.08
8.0.00.0100.11516.69
7.4.330.0030.08215.00
7.4.320.0100.07116.50
7.4.300.0000.08016.57
7.4.290.0070.07516.63
7.4.280.0030.07716.63
7.4.270.0030.08016.55
7.4.260.0060.08013.29
7.4.250.0030.07916.57
7.4.240.0030.07716.56
7.4.230.0060.07516.41
7.4.220.0100.13416.69
7.4.210.0090.11916.60
7.4.200.0030.07716.47
7.4.190.0000.08116.77
7.4.160.0170.11716.49
7.4.150.0070.11717.40
7.4.140.0130.11217.86
7.4.130.0020.12016.52
7.4.120.0150.11916.56
7.4.110.0130.11016.45
7.4.100.0160.10516.64
7.4.90.0100.11316.58
7.4.80.0100.11219.39
7.4.70.0190.10416.54
7.4.60.0060.11416.48
7.4.50.0070.07916.53
7.4.40.0000.09522.77
7.4.30.0070.11716.59
7.4.00.0070.08715.07
7.3.330.0030.07513.09
7.3.320.0000.07913.29
7.3.310.0030.08116.45
7.3.300.0030.07816.31
7.3.290.0060.11816.34
7.3.280.0110.11916.33
7.3.270.0130.10817.40
7.3.260.0130.11016.65
7.3.250.0110.11516.57
7.3.240.0100.11116.53
7.3.230.0100.11416.40
7.3.210.0100.11316.39
7.3.200.0060.11619.39
7.3.190.0070.12416.40
7.3.180.0130.10816.34
7.3.170.0100.11216.60
7.3.160.0130.10716.42
7.3.120.0100.08115.11
7.2.330.0100.11216.51
7.2.320.0160.11116.41
7.2.310.0100.11816.73
7.2.300.0100.11216.41
7.2.290.0130.10816.68
7.2.60.0100.08317.04
7.2.00.0000.09419.50
7.1.200.0000.09115.89
7.1.100.0400.08517.64
7.1.70.0000.08617.21
7.1.60.0100.10417.37
7.1.50.0070.08516.80
7.1.00.0000.10722.37
7.0.200.0030.15116.88
7.0.140.0070.18022.15
7.0.60.0000.10021.63
7.0.50.0170.16022.02
7.0.40.0030.19320.08
7.0.30.0070.18720.18
7.0.20.0070.17720.14
7.0.10.0070.19020.18
7.0.00.0030.18320.02
5.6.280.0000.18321.06
5.6.210.0100.10020.55
5.6.200.0070.14021.13
5.6.190.0070.18021.15
5.6.180.0030.18020.96
5.6.170.0100.16021.05
5.6.160.0100.16721.15
5.6.150.0030.18720.97
5.6.140.0030.18320.99
5.6.130.0030.16721.00
5.6.120.0100.15021.14
5.6.110.0000.16020.89
5.6.100.0030.19720.99
5.6.90.0000.12720.95
5.6.80.0070.17720.49
5.6.70.0030.19720.41
5.6.60.0070.16720.44
5.6.50.0100.16320.29
5.6.40.0000.19020.48
5.6.30.0030.18320.36
5.6.20.0030.18020.50
5.6.10.0030.12720.35
5.6.00.0070.17320.32
5.5.350.0000.11020.43
5.5.340.0000.18320.80
5.5.330.0030.17320.77
5.5.320.0070.18320.65
5.5.310.0030.13020.77
5.5.300.0030.14720.72
5.5.290.0100.18020.98
5.5.280.0070.15720.73
5.5.270.0100.18020.77
5.5.260.0100.17720.84
5.5.250.0030.12020.61
5.5.240.0130.17020.35
5.5.230.0070.18320.14
5.5.220.0070.13320.03
5.5.210.0070.16320.15
5.5.200.0030.18320.12
5.5.190.0070.16019.97
5.5.180.0070.13720.23
5.5.160.0200.13320.22
5.5.150.0030.17320.21
5.5.140.0070.17020.11
5.5.130.0000.13720.23
5.5.120.0030.12020.00
5.5.110.0000.18020.19
5.5.100.0070.16720.21
5.5.90.0000.14720.00
5.5.80.0030.18020.00
5.5.70.0000.19019.99
5.5.60.0030.13720.00
5.5.50.0100.15020.21
5.5.40.0070.11720.03
5.5.30.0070.17320.03
5.5.20.0030.18019.98
5.5.10.0100.11020.06
5.5.00.0030.18320.07
5.4.450.0000.19319.20
5.4.440.0100.17719.33
5.4.430.0130.16019.27
5.4.420.0070.16319.48
5.4.410.0030.13319.20
5.4.400.0030.18019.01
5.4.390.0030.19018.85
5.4.380.0070.17719.16
5.4.370.0000.15319.17
5.4.360.0030.11719.05
5.4.350.0030.11719.16
5.4.340.0030.18019.16
5.4.320.0100.16318.85
5.4.310.0030.18018.99
5.4.300.0070.16719.00
5.4.290.0000.13319.16
5.4.280.0000.13019.16
5.4.270.0030.12319.18
5.4.260.0100.16719.10
5.4.250.0030.17319.00
5.4.240.0000.13318.94
5.4.230.0000.17719.16
5.4.220.0070.16018.96
5.4.210.0070.16719.16
5.4.200.0000.17718.92
5.4.190.0030.18018.98
5.4.180.0100.12719.14
5.4.170.0100.11719.06
5.4.160.0030.11718.98
5.4.150.0030.12718.83
5.4.140.0000.17716.28
5.4.130.0000.17316.13
5.4.120.0030.16316.18
5.4.110.0000.18316.35
5.4.100.0030.15716.45
5.4.90.0000.15316.31
5.4.80.0030.19016.37
5.4.70.0070.17316.20
5.4.60.0070.17016.27
5.4.50.0030.15716.39
5.4.40.0100.17316.24
5.4.30.0070.13316.42
5.4.20.0000.16016.22
5.4.10.0000.16016.19
5.4.00.0030.18315.78
5.3.290.0000.19314.64
5.3.280.0000.18014.46
5.3.270.0030.13714.55
5.3.260.0030.11714.46
5.3.250.0030.16314.61
5.3.240.0030.14014.60
5.3.230.0030.14714.61
5.3.220.0000.16714.50
5.3.210.0030.17714.57
5.3.200.0030.18014.54
5.3.190.0100.11714.53
5.3.180.0030.14714.51
5.3.170.0070.16714.55
5.3.160.0000.12014.57
5.3.150.0000.12014.57
5.3.140.0030.16714.43
5.3.130.0000.18014.55
5.3.120.0030.16714.54
5.3.110.0030.18314.53
5.3.100.0000.12713.87
5.3.90.0070.17313.97
5.3.80.0030.16714.02
5.3.70.0030.13314.00
5.3.60.0030.16014.00
5.3.50.0070.18013.95
5.3.40.0000.16013.92
5.3.30.0070.15713.92
5.3.20.0000.16713.61
5.3.10.0000.15713.53
5.3.00.0030.15013.61
5.2.170.0000.06711.11
5.2.160.0070.05010.82
5.2.150.0030.05710.97
5.2.140.0000.06311.08
5.2.130.0030.04010.93
5.2.120.0000.06010.99
5.2.110.0000.06310.97
5.2.100.0030.06310.96
5.2.90.0030.06010.87
5.2.80.0030.07011.02
5.2.70.0000.05010.86
5.2.60.0000.05710.91
5.2.50.0030.05710.95
5.2.40.0070.05710.92
5.2.30.0000.03010.70
5.2.20.0000.03010.91
5.2.10.0100.05310.70
5.2.00.0070.05310.72
5.1.60.0030.04710.27
5.1.50.0030.05310.27
5.1.40.0030.04310.27
5.1.30.0070.04010.35
5.1.20.0000.04310.38
5.1.10.0000.04710.27
5.1.00.0030.05010.27
5.0.50.0030.04010.27
5.0.40.0030.04310.27
5.0.30.0030.05310.27
5.0.20.0000.04310.27
5.0.10.0030.04310.27
5.0.00.0030.06710.27
4.4.90.0000.03010.27
4.4.80.0030.02310.27
4.4.70.0000.03710.27
4.4.60.0100.02710.27
4.4.50.0000.03010.27
4.4.40.0000.05710.27
4.4.30.0000.03710.27
4.4.20.0000.03010.27
4.4.10.0070.03010.27
4.4.00.0000.05710.27
4.3.110.0000.03310.27
4.3.100.0000.02010.27
4.3.90.0030.03010.27
4.3.80.0000.05310.27
4.3.70.0000.02710.27
4.3.60.0030.03010.27
4.3.50.0000.03710.27
4.3.40.0000.04010.27
4.3.30.0000.03010.27
4.3.20.0030.02310.27
4.3.10.0000.03010.27
4.3.00.0000.03310.27

preferences:
63.23 ms | 401 KiB | 5 Q