3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashes = array(); $collisions = 0; for($i=0; $i < 60000; $i++){ $hash = hash("crc32", $i); if (in_array($hash, $hashes)) { $collisions++; } else { array_push($hashes, $hash); } } echo $collisions; ?>

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.99617.38
8.3.50.0121.98822.90
8.3.40.0131.98919.45
8.3.30.0171.98619.87
8.3.20.0031.99921.37
8.3.10.0071.99723.59
8.3.00.0101.99119.13
8.2.180.0331.96616.97
8.2.170.0131.99022.96
8.2.160.0071.99621.64
8.2.150.0071.99724.18
8.2.140.0032.00024.66
8.2.130.0071.99526.16
8.2.120.0032.00221.15
8.2.110.0031.99921.02
8.2.100.0071.99819.16
8.2.90.0031.99820.21
8.2.80.0032.00118.93
8.2.70.0032.00519.35
8.2.60.0071.99719.05
8.2.50.0002.00418.50
8.2.40.0002.00221.73
8.2.30.0071.99519.13
8.2.20.0002.00418.95
8.2.10.0002.00419.28
8.2.00.0002.00618.97
8.1.280.0131.98925.92
8.1.270.0031.99924.66
8.1.260.0002.00426.35
8.1.250.0032.00028.09
8.1.240.0071.99724.69
8.1.230.0131.99122.05
8.1.220.0071.99419.41
8.1.210.0031.99918.86
8.1.200.0071.99618.98
8.1.190.0002.00218.85
8.1.180.0002.00018.75
8.1.170.0101.99119.65
8.1.160.0071.99523.89
8.1.150.0071.98720.59
8.1.140.0002.00319.05
8.1.130.0071.99519.61
8.1.120.0101.99119.12
8.1.110.0031.99819.24
8.1.100.0002.00319.26
8.1.90.0002.00119.27
8.1.80.0031.99819.09
8.1.70.0032.00119.08
8.1.60.0171.98619.31
8.1.50.0002.00219.16
8.1.40.0031.99919.21
8.1.30.0031.99819.33
8.1.20.0002.00319.38
8.1.10.0131.99019.21
8.1.00.0032.00319.12
8.0.300.0032.00018.77
8.0.290.0071.99418.25
8.0.280.0002.00419.86
8.0.270.0071.99518.71
8.0.260.0031.99918.64
8.0.250.0002.00318.55
8.0.240.0071.99518.53
8.0.230.0071.99718.58
8.0.220.0101.99118.42
8.0.210.0032.00018.39
8.0.200.0002.00418.55
8.0.190.0031.99918.59
8.0.180.0071.99618.46
8.0.170.0002.00218.51
8.0.160.0071.99518.51
8.0.150.0032.00018.28
8.0.140.0071.99617.86
8.0.130.0031.99714.43
8.0.120.0031.99818.39
8.0.110.0031.99818.47
8.0.100.0002.00218.37
8.0.90.0031.99818.30
8.0.80.0101.98917.77
8.0.70.0101.99318.44
8.0.60.0071.99718.46
8.0.50.0032.00018.41
8.0.30.0261.97617.80
8.0.20.0251.97917.91
8.0.10.0031.99818.50
8.0.00.0271.97517.55
7.4.330.0032.00117.01
7.4.320.0002.00318.12
7.4.300.0002.00418.14
7.4.290.0002.00218.20
7.4.280.0032.00017.98
7.4.270.0031.99818.18
7.4.260.0032.00117.46
7.4.250.0032.00118.21
7.4.240.0071.99618.11
7.4.230.0071.99418.30
7.4.220.0231.97717.35
7.4.210.0031.99917.50
7.4.200.0071.99517.97
7.4.160.0231.97817.51
7.4.150.0091.99117.40
7.4.140.0101.99017.86
7.4.130.0151.98917.33
7.4.120.0151.98317.41
7.4.110.0172.45917.16
7.4.100.0062.45717.35
7.4.90.0202.42617.45
7.4.80.0102.44319.39
7.4.70.0192.38817.46
7.4.60.0132.45517.42
7.4.50.0072.49218.23
7.4.40.0132.41717.39
7.4.30.0452.32817.49
7.4.00.0072.49116.73
7.3.330.0361.95714.31
7.3.320.0002.00314.89
7.3.310.0071.99717.70
7.3.300.0071.99617.89
7.3.290.0391.95417.20
7.3.280.0181.98117.17
7.3.270.0101.98817.66
7.3.260.0131.99017.26
7.3.250.0101.99017.18
7.3.240.0131.98517.13
7.3.230.0072.46717.39
7.3.210.0292.43117.15
7.3.200.0132.44719.39
7.3.190.0262.42817.55
7.3.180.0132.38817.51
7.3.170.0262.43717.25
7.3.160.0132.43217.49
7.2.330.0102.44917.65
7.2.320.0202.43617.56
7.2.310.0162.36617.40
7.2.300.0352.39717.40
7.2.290.0162.44217.48
7.2.60.0032.48419.03
7.1.200.0202.44317.82
7.1.70.0072.49418.83
7.1.60.0032.49819.40
7.1.50.0102.49219.16
7.1.00.0032.49722.35
7.0.200.0102.48517.87
7.0.140.0072.49323.99
7.0.60.0072.49321.55
7.0.50.0002.50019.40
7.0.40.0102.49019.65
7.0.30.0532.44719.73
7.0.20.0202.48019.72
7.0.10.0202.48019.88
7.0.00.0072.49319.88
5.6.280.0032.49723.13
5.6.210.0132.47022.68
5.6.200.0072.49320.29
5.6.190.0032.49722.59
5.6.180.0302.47022.43
5.6.170.0302.47022.50
5.6.160.0032.49722.46
5.6.150.0072.49320.32
5.6.140.0132.48720.24
5.6.130.0102.49020.22
5.6.120.0072.49323.12
5.6.110.0202.48023.30
5.6.100.0072.49323.25
5.6.90.0102.49023.16
5.6.80.0172.48322.58
5.6.70.4532.02722.63
5.5.350.0072.49322.66
5.5.340.0102.49020.13
5.5.330.0132.48722.33
5.5.320.0432.45721.96
5.5.310.0302.47022.29
5.5.300.0072.49319.86
5.5.290.0002.50020.10
5.5.280.0032.49722.86
5.5.270.0072.49323.17
5.5.260.0032.49722.86
5.5.250.0072.49322.66
5.5.240.0102.49022.40
5.4.450.0132.48321.39
5.4.440.3532.14321.59
5.4.430.0102.48721.48
5.4.420.0232.47321.45
5.4.410.0272.47021.35
5.4.400.0272.47021.32
5.4.390.3272.17021.11
5.4.380.0232.47321.13
5.4.370.0302.46721.15
5.4.360.0572.44020.91
5.4.350.0332.46320.88
5.4.340.0132.48321.03
5.4.320.0232.47321.04
5.4.310.0572.44021.16
5.4.300.0232.47321.17
5.4.290.4232.07321.07
5.4.280.0402.45721.18
5.4.270.0502.44720.92
5.4.260.0372.46021.05
5.4.250.0232.47321.22
5.4.240.0202.47721.20
5.4.230.0202.47721.36
5.4.220.0272.47021.32
5.4.210.0232.47320.91
5.4.200.0302.46721.29
5.4.190.0232.47321.05
5.4.180.0132.48321.21
5.4.170.0232.47321.11
5.4.160.0332.46321.31
5.4.150.4432.05720.94
5.4.140.3532.14318.37
5.4.130.0232.47318.56
5.4.120.0332.46318.29
5.4.110.0202.47718.56
5.4.100.0172.48018.57
5.4.90.0272.47018.35
5.4.80.0032.49318.54
5.4.70.0032.49318.53
5.4.60.0132.48318.41
5.4.50.0032.49318.52
5.4.40.0072.49018.40
5.4.30.0172.48018.56
5.4.20.0232.47718.25
5.4.10.3832.11318.23
5.4.00.3672.13017.72

preferences:
40.46 ms | 401 KiB | 5 Q