3v4l.org

run code in 300+ PHP versions simultaneously
<?php function no_dupes(array $input_array) { return array_count_values($input_array) === count($input_array); } var_export(no_dupes([1, 1.5])); // should be true

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.4.120.0160.00520.52
8.4.110.0070.00922.21
8.4.100.0120.00417.80
8.4.90.0120.00918.45
8.4.80.0120.00819.52
8.4.70.0050.00317.89
8.4.60.0100.01020.32
8.4.50.0150.00717.75
8.4.40.0120.00622.19
8.4.30.0150.00620.40
8.4.20.0160.00318.00
8.4.10.0060.00320.47
8.3.250.0100.00518.70
8.3.240.0090.00616.54
8.3.230.0120.00916.77
8.3.220.0090.00917.19
8.3.210.0090.01016.80
8.3.200.0050.00416.63
8.3.190.0060.00618.92
8.3.180.0050.00318.59
8.3.170.0100.01016.84
8.3.160.0070.01118.41
8.3.150.0170.00317.09
8.3.140.0070.00316.91
8.3.130.0090.00018.22
8.3.120.0030.00818.98
8.3.110.0030.00620.94
8.3.100.0070.01124.06
8.3.90.0040.00426.77
8.3.80.0090.00016.88
8.3.70.0110.00416.58
8.3.60.0060.01016.50
8.3.50.0110.00823.56
8.3.40.0120.00618.84
8.3.30.0090.00618.54
8.3.20.0080.00024.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.290.0050.00620.17
8.2.280.0130.00618.39
8.2.270.0150.00616.61
8.2.260.0090.00016.71
8.2.250.0000.00920.18
8.2.240.0100.00018.82
8.2.230.0060.00322.58
8.2.220.0000.00937.54
8.2.210.0080.00026.77
8.2.200.0030.00618.29
8.2.190.0120.00616.75
8.2.180.0130.01025.92
8.2.170.0120.00918.79
8.2.160.0070.00722.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00226.35
8.2.110.0030.00622.05
8.2.100.0070.00417.72
8.2.90.0090.00017.53
8.2.80.0000.01017.97
8.2.70.0030.00517.91
8.2.60.0050.00318.03
8.2.50.0080.00018.10
8.2.40.0070.00019.18
8.2.30.0000.00817.98
8.2.20.0040.00418.06
8.2.10.0070.00019.11
8.2.00.0050.00319.09
8.1.330.0120.00621.73
8.1.320.0130.00615.95
8.1.310.0100.00719.97
8.1.300.0030.00620.02
8.1.290.0050.00330.84
8.1.280.0070.01025.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00620.50
8.1.230.0030.00820.90
8.1.220.0040.00417.74
8.1.210.0080.00018.97
8.1.200.0000.01317.10
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0000.00918.55
8.1.160.0030.00520.52
8.1.150.0000.00718.81
8.1.140.0040.00418.76
8.1.130.0070.00020.13
8.1.120.0030.00317.28
8.1.110.0030.00517.36
8.1.100.0040.00417.42
8.1.90.0070.00017.39
8.1.80.0000.00717.45
8.1.70.0000.00717.39
8.1.60.0040.00417.53
8.1.50.0030.00717.44
8.1.40.0070.00017.45
8.1.30.0040.00817.59
8.1.20.0030.00617.55
8.1.10.0120.00017.39
8.1.00.0060.00317.30
8.0.300.0040.00419.77
8.0.290.0000.00716.75
8.0.280.0030.00618.36
8.0.270.0070.00017.93
8.0.260.0000.00618.54
8.0.250.0040.00416.89
8.0.240.0070.00016.75
8.0.230.0000.00616.77
8.0.220.0040.00416.82
8.0.210.0030.00516.88
8.0.200.0030.00316.82
8.0.190.0070.00016.85
8.0.180.0030.00516.77
8.0.170.0080.00016.84
8.0.160.0070.00016.96
8.0.150.0000.00716.81
8.0.140.0110.00016.75
8.0.130.0000.00513.30
8.0.120.0090.00016.73
8.0.110.0040.00416.88
8.0.100.0040.00416.84
8.0.90.0000.00716.75
8.0.80.0130.00416.78
8.0.70.0080.00016.87
8.0.60.0050.00316.99
8.0.50.0000.00716.99
8.0.30.0100.00717.04
8.0.20.0090.00916.99
8.0.10.0040.00417.07
8.0.00.0200.01217.86
7.4.330.0000.00515.55
7.4.320.0000.00616.43
7.4.300.0050.00216.51
7.4.290.0030.00516.38
7.4.280.0050.00216.51
7.4.270.0030.00316.52
7.4.260.0000.00613.24
7.4.250.0040.00416.41
7.4.240.0070.00016.52
7.4.230.0030.00316.24
7.4.220.0030.00316.56
7.4.210.0080.00816.49
7.4.200.0000.00716.60
7.4.140.0100.00717.86
7.4.130.0300.00417.86
7.4.120.0250.00617.86
7.4.110.0320.00017.86
7.4.100.0200.01017.86
7.4.90.0210.00917.86
7.4.80.0260.00317.86
7.4.70.0210.01317.86
7.4.60.0230.01117.86
7.4.50.0210.01017.86
7.4.40.0300.01017.86
7.4.30.0260.00717.86
7.4.20.0280.00617.86
7.4.10.0220.00817.86
7.4.00.0220.00717.86
7.3.330.0040.00416.24
7.3.320.0030.00313.35
7.3.310.0000.00616.41
7.3.300.0030.00316.23
7.3.290.0050.01116.40
7.3.260.0200.01217.86
7.3.250.0300.00317.86
7.3.240.0340.00017.86
7.3.230.0220.01117.86
7.3.220.0260.00717.86
7.3.210.0170.01717.86
7.3.200.0240.00817.86
7.3.190.0200.01217.86
7.3.180.0310.00417.86
7.3.170.0260.00717.86
7.3.160.0220.01317.86
7.3.150.0310.00417.86
7.3.140.0310.00017.86
7.3.130.0300.00317.86
7.3.120.0220.00917.86
7.3.110.0210.01217.86
7.3.100.0290.00317.86
7.3.90.0260.00517.86
7.3.80.0290.01017.86
7.3.70.0180.01817.86
7.3.60.0270.01017.86
7.3.50.0170.01417.86
7.3.40.0140.01717.86
7.3.30.0270.00717.86
7.3.20.0180.01517.86
7.3.10.0160.01517.86
7.3.00.0240.01217.86

preferences:
18.02 ms | 403 KiB | 5 Q